Skip to content

Commit

Permalink
fix(radioGroup): add RTL support to the radio group component (#2508)
Browse files Browse the repository at this point in the history
* fix(radioGroup): add RTL support to the radio group component

* fix(radio): add changeset

* chore(changeset): correct package name and add issue number

---------

Co-authored-by: 铡扫占散觿铡謪占散 <wingkwong.code@gmail.com>
  • Loading branch information
khatabakhsh and wingkwong committed Apr 21, 2024
1 parent 10f2b8f commit 3193401
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/lemon-kiwis-shop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@nextui-org/theme": patch
---

Improved styling for radio button labels, including adjustments for different screen sizes and support for right-to-left (RTL) languages. (#2507)
4 changes: 2 additions & 2 deletions packages/core/theme/src/components/radio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,14 +97,14 @@ const radio = tv({
md: {
wrapper: "w-5 h-5",
control: "w-2 h-2",
labelWrapper: "ml-2",
labelWrapper: "ml-2 rtl:mr-2 rtl:ml-[unset]",
label: "text-medium",
description: "text-small",
},
lg: {
wrapper: "w-6 h-6",
control: "w-2.5 h-2.5",
labelWrapper: "ml-2",
labelWrapper: "ml-2 rtl:mr-2 rtl:ml-[unset]",
label: "text-large",
description: "text-medium",
},
Expand Down

0 comments on commit 3193401

Please sign in to comment.