Skip to content

Commit

Permalink
fix(theme): chip with dot variant is not properly padded when having …
Browse files Browse the repository at this point in the history
…a 1-char text (#2387)
  • Loading branch information
kuri-sun authored Mar 3, 2024
1 parent a235e32 commit 141887d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/fast-phones-fail.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@nextui-org/theme": major
---

Chip with dot variant is not properly styled
9 changes: 9 additions & 0 deletions packages/core/theme/src/components/chip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,15 @@ const chip = tv({
base: "w-auto",
},
},
// isOneChar / dot
{
isOneChar: true,
variant: "dot",
class: {
base: "w-auto h-7 px-1 items-center",
content: "px-2",
},
},
// hasStartContent / size
{
hasStartContent: true,
Expand Down

0 comments on commit 141887d

Please sign in to comment.