Skip to content

Commit

Permalink
fix(input): correct label margin for RTL required inputs (#2781)
Browse files Browse the repository at this point in the history
* fix(input): correct label margin for RTL required inputs

* fix(theme): add changeset fr theme
  • Loading branch information
mrbadri authored Apr 29, 2024
1 parent 5f5ad7a commit 648edad
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/witty-birds-watch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@nextui-org/theme": patch
---

Fixed incorrect margin on labels for RTL required inputs. (#2780)
3 changes: 2 additions & 1 deletion packages/core/theme/src/components/input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,8 @@ const input = tv({
},
isRequired: {
true: {
label: "after:content-['*'] after:text-danger after:ml-0.5",
label:
"after:content-['*'] after:text-danger after:ml-0.5 rtl:after:ml-[unset] rtl:after:mr-0.5",
},
},
isMultiline: {
Expand Down

0 comments on commit 648edad

Please sign in to comment.