Skip to content

Commit

Permalink
refactor(theme): revise label font size for lg (#4141)
Browse files Browse the repository at this point in the history
* refactor(theme): revise label font size for lg

* chore(changeset): add changeset

* refactor(theme): revise label font size for lg
  • Loading branch information
wingkwong authored Nov 29, 2024
1 parent efd42bc commit 922c4a5
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/many-starfishes-refuse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@nextui-org/theme": patch
---

revise label font size for lg (#3073)
3 changes: 2 additions & 1 deletion packages/core/theme/src/components/date-input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ const dateInput = tv({
clearButton: "text-large",
},
lg: {
label: "text-medium",
input: "text-medium",
inputWrapper: "h-12 min-h-12 rounded-large",
},
Expand Down Expand Up @@ -387,7 +388,7 @@ const dateInput = tv({
labelPlacement: "inside",
size: "lg",
class: {
label: "text-small",
label: "text-medium",
inputWrapper: "h-16 py-2.5 gap-0",
},
},
Expand Down
4 changes: 2 additions & 2 deletions packages/core/theme/src/components/input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ const input = tv({
clearButton: "text-large",
},
lg: {
label: "text-medium",
inputWrapper: "h-12 min-h-12 rounded-large",
input: "text-medium",
clearButton: "text-large",
Expand Down Expand Up @@ -177,7 +178,7 @@ const input = tv({
label: "relative text-foreground pe-2 ps-2 pointer-events-auto",
},
inside: {
label: "text-tiny cursor-text",
label: "cursor-text",
inputWrapper: "flex-col items-start justify-center gap-0",
innerWrapper: "group-data-[has-label=true]:items-end",
},
Expand Down Expand Up @@ -576,7 +577,6 @@ const input = tv({
labelPlacement: "inside",
size: "lg",
class: {
label: "text-small",
inputWrapper: "h-16 py-2.5 gap-0",
},
},
Expand Down
2 changes: 1 addition & 1 deletion packages/core/theme/src/components/select.ts
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ const select = tv({
labelPlacement: "inside",
size: "lg",
class: {
label: "text-small",
label: "text-medium",
trigger: "h-16 min-h-16 py-2.5 gap-0",
},
},
Expand Down

0 comments on commit 922c4a5

Please sign in to comment.