diff --git a/src/theme/button-group.ts b/src/theme/button-group.ts index 0dc1326a..261ab1a0 100644 --- a/src/theme/button-group.ts +++ b/src/theme/button-group.ts @@ -1,18 +1,18 @@ export const buttonGroupVariant = { buttonGroup: { - horizontal: 'not-only:first:rounded-e-none not-only:last:rounded-s-none not-last:not-first:rounded-none', - vertical: 'not-only:first:rounded-b-none not-only:last:rounded-t-none not-last:not-first:rounded-none' + horizontal: 'not-only:first:rounded-e-none not-only:last:rounded-s-none not-last:not-first:rounded-none focus-visible:z-[1]', + vertical: 'not-only:first:rounded-b-none not-only:last:rounded-t-none not-last:not-first:rounded-none focus-visible:z-[1]' } } export const buttonGroupVariantWithRoot = { buttonGroup: { horizontal: { - root: 'group', + root: 'group has-focus-visible:z-[1]', base: 'group-not-only:group-first:rounded-e-none group-not-only:group-last:rounded-s-none group-not-last:group-not-first:rounded-none' }, vertical: { - root: 'group', + root: 'group has-focus-visible:z-[1]', base: 'group-not-only:group-first:rounded-b-none group-not-only:group-last:rounded-t-none group-not-last:group-not-first:rounded-none' } } diff --git a/test/components/__snapshots__/ButtonGroup-vue.spec.ts.snap b/test/components/__snapshots__/ButtonGroup-vue.spec.ts.snap index 4dd4459f..2220d4f6 100644 --- a/test/components/__snapshots__/ButtonGroup-vue.spec.ts.snap +++ b/test/components/__snapshots__/ButtonGroup-vue.spec.ts.snap @@ -2,10 +2,10 @@ exports[`ButtonGroup > renders orientation vertical with default slot correctly 1`] = ` "
-
+
-
@@ -18,10 +18,10 @@ exports[`ButtonGroup > renders with class correctly 1`] = `"
-
+
-
@@ -30,10 +30,10 @@ exports[`ButtonGroup > renders with default slot correctly 1`] = ` exports[`ButtonGroup > renders with size lg correctly 1`] = ` "
-
+
-
@@ -42,10 +42,10 @@ exports[`ButtonGroup > renders with size lg correctly 1`] = ` exports[`ButtonGroup > renders with size md correctly 1`] = ` "
-
+
-
@@ -54,10 +54,10 @@ exports[`ButtonGroup > renders with size md correctly 1`] = ` exports[`ButtonGroup > renders with size sm correctly 1`] = ` "
-
+
-
@@ -66,10 +66,10 @@ exports[`ButtonGroup > renders with size sm correctly 1`] = ` exports[`ButtonGroup > renders with size xl correctly 1`] = ` "
-
+
-
@@ -78,10 +78,10 @@ exports[`ButtonGroup > renders with size xl correctly 1`] = ` exports[`ButtonGroup > renders with size xs correctly 1`] = ` "
-
+
-
diff --git a/test/components/__snapshots__/ButtonGroup.spec.ts.snap b/test/components/__snapshots__/ButtonGroup.spec.ts.snap index 4dd4459f..2220d4f6 100644 --- a/test/components/__snapshots__/ButtonGroup.spec.ts.snap +++ b/test/components/__snapshots__/ButtonGroup.spec.ts.snap @@ -2,10 +2,10 @@ exports[`ButtonGroup > renders orientation vertical with default slot correctly 1`] = ` "
-
+
-
@@ -18,10 +18,10 @@ exports[`ButtonGroup > renders with class correctly 1`] = `"
-
+
-
@@ -30,10 +30,10 @@ exports[`ButtonGroup > renders with default slot correctly 1`] = ` exports[`ButtonGroup > renders with size lg correctly 1`] = ` "
-
+
-
@@ -42,10 +42,10 @@ exports[`ButtonGroup > renders with size lg correctly 1`] = ` exports[`ButtonGroup > renders with size md correctly 1`] = ` "
-
+
-
@@ -54,10 +54,10 @@ exports[`ButtonGroup > renders with size md correctly 1`] = ` exports[`ButtonGroup > renders with size sm correctly 1`] = ` "
-
+
-
@@ -66,10 +66,10 @@ exports[`ButtonGroup > renders with size sm correctly 1`] = ` exports[`ButtonGroup > renders with size xl correctly 1`] = ` "
-
+
-
@@ -78,10 +78,10 @@ exports[`ButtonGroup > renders with size xl correctly 1`] = ` exports[`ButtonGroup > renders with size xs correctly 1`] = ` "
-
+
-