diff --git a/src/theme/tabs.ts b/src/theme/tabs.ts index 20131ce5..c9e57de1 100644 --- a/src/theme/tabs.ts +++ b/src/theme/tabs.ts @@ -20,7 +20,7 @@ export default (options: Required) => ({ variant: { pill: { list: 'bg-[var(--ui-bg-elevated)] rounded-[calc(var(--ui-radius)*2)]', - trigger: 'flex-1', + trigger: 'flex-1 w-full', indicator: 'rounded-[calc(var(--ui-radius)*1.5)] shadow-sm' }, link: { @@ -78,7 +78,7 @@ export default (options: Required) => ({ orientation: 'horizontal', variant: 'link', class: { - list: 'border-b', + list: 'border-b -mb-px', indicator: '-bottom-px h-px' } }, { @@ -92,7 +92,7 @@ export default (options: Required) => ({ orientation: 'vertical', variant: 'link', class: { - list: 'border-l', + list: 'border-l -ml-px', indicator: '-left-px w-px' } }, ...(options.theme.colors || []).map((color: string) => ({ diff --git a/test/components/__snapshots__/Tabs-vue.spec.ts.snap b/test/components/__snapshots__/Tabs-vue.spec.ts.snap index 54c4227e..cc39758d 100644 --- a/test/components/__snapshots__/Tabs-vue.spec.ts.snap +++ b/test/components/__snapshots__/Tabs-vue.spec.ts.snap @@ -3,7 +3,7 @@ exports[`Tabs > renders with class correctly 1`] = ` "
-
+
This is the content shown for Tab1
@@ -14,7 +14,7 @@ exports[`Tabs > renders with class correctly 1`] = ` exports[`Tabs > renders with content slot correctly 1`] = ` "
-
+
Content slot
@@ -25,7 +25,7 @@ exports[`Tabs > renders with content slot correctly 1`] = ` exports[`Tabs > renders with custom slot correctly 1`] = ` "
-
+
This is the content shown for Tab1
@@ -36,7 +36,7 @@ exports[`Tabs > renders with custom slot correctly 1`] = ` exports[`Tabs > renders with default slot correctly 1`] = ` "
-
+
This is the content shown for Tab1
@@ -47,7 +47,7 @@ exports[`Tabs > renders with default slot correctly 1`] = ` exports[`Tabs > renders with defaultValue correctly 1`] = ` "
-
+
And, this is the content for Tab2
@@ -58,7 +58,7 @@ exports[`Tabs > renders with defaultValue correctly 1`] = ` exports[`Tabs > renders with items correctly 1`] = ` "
-
+
This is the content shown for Tab1
@@ -69,9 +69,9 @@ exports[`Tabs > renders with items correctly 1`] = ` exports[`Tabs > renders with labelKey correctly 1`] = ` "
-
+
This is the content shown for Tab1
@@ -82,7 +82,7 @@ exports[`Tabs > renders with labelKey correctly 1`] = ` exports[`Tabs > renders with leading slot correctly 1`] = ` "
-
+
This is the content shown for Tab1
@@ -93,7 +93,7 @@ exports[`Tabs > renders with leading slot correctly 1`] = ` exports[`Tabs > renders with modelValue correctly 1`] = ` "
-
+
And, this is the content for Tab2
@@ -103,7 +103,7 @@ exports[`Tabs > renders with modelValue correctly 1`] = ` exports[`Tabs > renders with neutral variant link correctly 1`] = ` "
-
+
This is the content shown for Tab1
@@ -115,7 +115,7 @@ exports[`Tabs > renders with neutral variant link correctly 1`] = ` exports[`Tabs > renders with neutral variant pill correctly 1`] = ` "
-
+
This is the content shown for Tab1
@@ -126,7 +126,7 @@ exports[`Tabs > renders with neutral variant pill correctly 1`] = ` exports[`Tabs > renders with orientation vertical correctly 1`] = ` "
-
+
This is the content shown for Tab1
@@ -136,7 +136,7 @@ exports[`Tabs > renders with orientation vertical correctly 1`] = ` exports[`Tabs > renders with primary variant link correctly 1`] = ` "
-
+
This is the content shown for Tab1
@@ -148,7 +148,7 @@ exports[`Tabs > renders with primary variant link correctly 1`] = ` exports[`Tabs > renders with primary variant pill correctly 1`] = ` "
-
+
This is the content shown for Tab1
@@ -159,7 +159,7 @@ exports[`Tabs > renders with primary variant pill correctly 1`] = ` exports[`Tabs > renders with size lg correctly 1`] = ` "
-
+
This is the content shown for Tab1
@@ -170,7 +170,7 @@ exports[`Tabs > renders with size lg correctly 1`] = ` exports[`Tabs > renders with size md correctly 1`] = ` "
-
+
This is the content shown for Tab1
@@ -181,7 +181,7 @@ exports[`Tabs > renders with size md correctly 1`] = ` exports[`Tabs > renders with size sm correctly 1`] = ` "
-
+
This is the content shown for Tab1
@@ -192,7 +192,7 @@ exports[`Tabs > renders with size sm correctly 1`] = ` exports[`Tabs > renders with size xl correctly 1`] = ` "
-
+
This is the content shown for Tab1
@@ -203,7 +203,7 @@ exports[`Tabs > renders with size xl correctly 1`] = ` exports[`Tabs > renders with size xs correctly 1`] = ` "
-
+
This is the content shown for Tab1
@@ -214,7 +214,7 @@ exports[`Tabs > renders with size xs correctly 1`] = ` exports[`Tabs > renders with trailing slot correctly 1`] = ` "
-
+
This is the content shown for Tab1
@@ -225,7 +225,7 @@ exports[`Tabs > renders with trailing slot correctly 1`] = ` exports[`Tabs > renders with ui correctly 1`] = ` "
-
+
This is the content shown for Tab1
@@ -236,7 +236,7 @@ exports[`Tabs > renders with ui correctly 1`] = ` exports[`Tabs > renders without content correctly 1`] = ` "
-
+
" diff --git a/test/components/__snapshots__/Tabs.spec.ts.snap b/test/components/__snapshots__/Tabs.spec.ts.snap index 2b06a74d..1fd9a673 100644 --- a/test/components/__snapshots__/Tabs.spec.ts.snap +++ b/test/components/__snapshots__/Tabs.spec.ts.snap @@ -3,7 +3,7 @@ exports[`Tabs > renders with class correctly 1`] = ` "
-
+
This is the content shown for Tab1
@@ -14,7 +14,7 @@ exports[`Tabs > renders with class correctly 1`] = ` exports[`Tabs > renders with content slot correctly 1`] = ` "
-
+
Content slot
@@ -25,7 +25,7 @@ exports[`Tabs > renders with content slot correctly 1`] = ` exports[`Tabs > renders with custom slot correctly 1`] = ` "
-
+
This is the content shown for Tab1
@@ -36,7 +36,7 @@ exports[`Tabs > renders with custom slot correctly 1`] = ` exports[`Tabs > renders with default slot correctly 1`] = ` "
-
+
This is the content shown for Tab1
@@ -47,7 +47,7 @@ exports[`Tabs > renders with default slot correctly 1`] = ` exports[`Tabs > renders with defaultValue correctly 1`] = ` "
-
+
And, this is the content for Tab2
@@ -58,7 +58,7 @@ exports[`Tabs > renders with defaultValue correctly 1`] = ` exports[`Tabs > renders with items correctly 1`] = ` "
-
+
This is the content shown for Tab1
@@ -69,9 +69,9 @@ exports[`Tabs > renders with items correctly 1`] = ` exports[`Tabs > renders with labelKey correctly 1`] = ` "
-
+
This is the content shown for Tab1
@@ -82,7 +82,7 @@ exports[`Tabs > renders with labelKey correctly 1`] = ` exports[`Tabs > renders with leading slot correctly 1`] = ` "
-
+
This is the content shown for Tab1
@@ -93,7 +93,7 @@ exports[`Tabs > renders with leading slot correctly 1`] = ` exports[`Tabs > renders with modelValue correctly 1`] = ` "
-
+
And, this is the content for Tab2
@@ -103,7 +103,7 @@ exports[`Tabs > renders with modelValue correctly 1`] = ` exports[`Tabs > renders with neutral variant link correctly 1`] = ` "
-
+
This is the content shown for Tab1
@@ -115,7 +115,7 @@ exports[`Tabs > renders with neutral variant link correctly 1`] = ` exports[`Tabs > renders with neutral variant pill correctly 1`] = ` "
-
+
This is the content shown for Tab1
@@ -126,7 +126,7 @@ exports[`Tabs > renders with neutral variant pill correctly 1`] = ` exports[`Tabs > renders with orientation vertical correctly 1`] = ` "
-
+
This is the content shown for Tab1
@@ -136,7 +136,7 @@ exports[`Tabs > renders with orientation vertical correctly 1`] = ` exports[`Tabs > renders with primary variant link correctly 1`] = ` "
-
+
This is the content shown for Tab1
@@ -148,7 +148,7 @@ exports[`Tabs > renders with primary variant link correctly 1`] = ` exports[`Tabs > renders with primary variant pill correctly 1`] = ` "
-
+
This is the content shown for Tab1
@@ -159,7 +159,7 @@ exports[`Tabs > renders with primary variant pill correctly 1`] = ` exports[`Tabs > renders with size lg correctly 1`] = ` "
-
+
This is the content shown for Tab1
@@ -170,7 +170,7 @@ exports[`Tabs > renders with size lg correctly 1`] = ` exports[`Tabs > renders with size md correctly 1`] = ` "
-
+
This is the content shown for Tab1
@@ -181,7 +181,7 @@ exports[`Tabs > renders with size md correctly 1`] = ` exports[`Tabs > renders with size sm correctly 1`] = ` "
-
+
This is the content shown for Tab1
@@ -192,7 +192,7 @@ exports[`Tabs > renders with size sm correctly 1`] = ` exports[`Tabs > renders with size xl correctly 1`] = ` "
-
+
This is the content shown for Tab1
@@ -203,7 +203,7 @@ exports[`Tabs > renders with size xl correctly 1`] = ` exports[`Tabs > renders with size xs correctly 1`] = ` "
-
+
This is the content shown for Tab1
@@ -214,7 +214,7 @@ exports[`Tabs > renders with size xs correctly 1`] = ` exports[`Tabs > renders with trailing slot correctly 1`] = ` "
-
+
This is the content shown for Tab1
@@ -225,7 +225,7 @@ exports[`Tabs > renders with trailing slot correctly 1`] = ` exports[`Tabs > renders with ui correctly 1`] = ` "
-
+
This is the content shown for Tab1
@@ -236,7 +236,7 @@ exports[`Tabs > renders with ui correctly 1`] = ` exports[`Tabs > renders without content correctly 1`] = ` "
-
+
"