mirror of
https://github.com/nextui-org/nextui.git
synced 2025-12-08 19:26:11 +00:00
fix: issue on RTL support checkbox component (#2466)
* fix: issue on RTL support checkbox component * fix: delete extra file * fix: adjust the changeset for rtl checkbox * fix: convert changeset rtl checkbox to ptach
This commit is contained in:
parent
a686262009
commit
e4b3c7d1a1
5
.changeset/rare-needles-study.md
Normal file
5
.changeset/rare-needles-study.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
"@nextui-org/checkbox": patch
|
||||
---
|
||||
|
||||
Add RTL support to the checkbox component
|
||||
@ -78,7 +78,7 @@ const checkbox = tv({
|
||||
size: {
|
||||
sm: {
|
||||
wrapper: [
|
||||
"w-4 h-4 mr-2",
|
||||
"w-4 h-4 mr-2 rtl:ml-2 rtl:mr-[unset]",
|
||||
"rounded-[calc(theme(borderRadius.medium)*0.5)]",
|
||||
"before:rounded-[calc(theme(borderRadius.medium)*0.5)]",
|
||||
"after:rounded-[calc(theme(borderRadius.medium)*0.5)]",
|
||||
@ -88,7 +88,7 @@ const checkbox = tv({
|
||||
},
|
||||
md: {
|
||||
wrapper: [
|
||||
"w-5 h-5 mr-2",
|
||||
"w-5 h-5 mr-2 rtl:ml-2 rtl:mr-[unset]",
|
||||
"rounded-[calc(theme(borderRadius.medium)*0.6)]",
|
||||
"before:rounded-[calc(theme(borderRadius.medium)*0.6)]",
|
||||
"after:rounded-[calc(theme(borderRadius.medium)*0.6)]",
|
||||
@ -98,7 +98,7 @@ const checkbox = tv({
|
||||
},
|
||||
lg: {
|
||||
wrapper: [
|
||||
"w-6 h-6 mr-2",
|
||||
"w-6 h-6 mr-2 rtl:ml-2 rtl:mr-[unset]",
|
||||
"rounded-[calc(theme(borderRadius.medium)*0.7)]",
|
||||
"before:rounded-[calc(theme(borderRadius.medium)*0.7)]",
|
||||
"after:rounded-[calc(theme(borderRadius.medium)*0.7)]",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user