Skip to content

Commit

Permalink
fix(theme): label placement in select and input (#3869)
Browse files Browse the repository at this point in the history
* fix(theme): fix the label placement

* chore(changeset): adding the changeset

* chore(select): adding comments
  • Loading branch information
macci001 authored Oct 11, 2024
1 parent 488a18f commit 0cf9139
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/calm-trees-serve.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@nextui-org/theme": patch
---

fix label placement in input and select
4 changes: 3 additions & 1 deletion packages/core/theme/src/components/input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ const input = tv({
"absolute",
"z-10",
"pointer-events-none",
"origin-top-start",
"origin-top-left",
// Using RTL here as Tailwind CSS doesn't support `start` and `end` logical properties for transforms yet.
"rtl:origin-top-right",
"subpixel-antialiased",
"block",
"text-small",
Expand Down
8 changes: 6 additions & 2 deletions packages/core/theme/src/components/select.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ const select = tv({
"block",
"absolute",
"z-10",
"origin-top-start",
"origin-top-left",
// Using RTL here as Tailwind CSS doesn't support `start` and `end` logical properties for transforms yet.
"rtl:origin-top-right",
"subpixel-antialiased",
"text-small",
"text-foreground-500",
Expand Down Expand Up @@ -187,7 +189,9 @@ const select = tv({
base: "transition-background motion-reduce:transition-none !duration-150",
label: [
"will-change-auto",
"origin-top-start",
"origin-top-left",
// Using RTL here as Tailwind CSS doesn't support `start` and `end` logical properties for transforms yet.
"rtl:origin-top-right",
"!duration-200",
"!ease-out",
"transition-[transform,color,left,opacity]",
Expand Down

0 comments on commit 0cf9139

Please sign in to comment.