From 648edad77ea6265baecbc8cd7d1caee5a983da7c Mon Sep 17 00:00:00 2001 From: Mohammad Reza Badri <85818966+mrbadri@users.noreply.github.com> Date: Mon, 29 Apr 2024 10:52:14 +0330 Subject: [PATCH] fix(input): correct label margin for RTL required inputs (#2781) * fix(input): correct label margin for RTL required inputs * fix(theme): add changeset fr theme --- .changeset/witty-birds-watch.md | 5 +++++ packages/core/theme/src/components/input.ts | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .changeset/witty-birds-watch.md diff --git a/.changeset/witty-birds-watch.md b/.changeset/witty-birds-watch.md new file mode 100644 index 0000000000..8d9b8cd45a --- /dev/null +++ b/.changeset/witty-birds-watch.md @@ -0,0 +1,5 @@ +--- +"@nextui-org/theme": patch +--- + +Fixed incorrect margin on labels for RTL required inputs. (#2780) diff --git a/packages/core/theme/src/components/input.ts b/packages/core/theme/src/components/input.ts index 7ac7b19e82..b231ef69ab 100644 --- a/packages/core/theme/src/components/input.ts +++ b/packages/core/theme/src/components/input.ts @@ -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: {