From 43d281f6d1d8b0017ed61d929c5e311fb5b03447 Mon Sep 17 00:00:00 2001 From: Alireza Alibeiki Date: Thu, 22 May 2025 16:06:44 +0330 Subject: [PATCH] fix(CheckboxGroup/RadioGroup): variant `table` borders in RTL mode (#4192) --- src/theme/checkbox-group.ts | 2 +- src/theme/radio-group.ts | 2 +- .../components/__snapshots__/CheckboxGroup-vue.spec.ts.snap | 6 +++--- test/components/__snapshots__/CheckboxGroup.spec.ts.snap | 6 +++--- test/components/__snapshots__/RadioGroup-vue.spec.ts.snap | 6 +++--- test/components/__snapshots__/RadioGroup.spec.ts.snap | 6 +++--- 6 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/theme/checkbox-group.ts b/src/theme/checkbox-group.ts index 25611cb8..d6dd5584 100644 --- a/src/theme/checkbox-group.ts +++ b/src/theme/checkbox-group.ts @@ -65,7 +65,7 @@ export default (options: Required) => ({ orientation: 'horizontal', variant: 'table', class: { - item: 'first-of-type:rounded-l-lg last-of-type:rounded-r-lg', + item: 'first-of-type:rounded-s-lg last-of-type:rounded-e-lg', fieldset: 'gap-0 -space-x-px' } }, diff --git a/src/theme/radio-group.ts b/src/theme/radio-group.ts index 3f90b284..bf0cac27 100644 --- a/src/theme/radio-group.ts +++ b/src/theme/radio-group.ts @@ -121,7 +121,7 @@ export default (options: Required) => ({ orientation: 'horizontal', variant: 'table', class: { - item: 'first-of-type:rounded-l-lg last-of-type:rounded-r-lg', + item: 'first-of-type:rounded-s-lg last-of-type:rounded-e-lg', fieldset: 'gap-0 -space-x-px' } }, diff --git a/test/components/__snapshots__/CheckboxGroup-vue.spec.ts.snap b/test/components/__snapshots__/CheckboxGroup-vue.spec.ts.snap index 1e7b1f8a..ab40c686 100644 --- a/test/components/__snapshots__/CheckboxGroup-vue.spec.ts.snap +++ b/test/components/__snapshots__/CheckboxGroup-vue.spec.ts.snap @@ -360,7 +360,7 @@ exports[`CheckboxGroup > renders with horizontal variant list correctly 1`] = ` exports[`CheckboxGroup > renders with horizontal variant table correctly 1`] = ` "
-
-