From 8097fff79d3d9f63481c6cd8e3e724a67f7761df Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Thu, 13 Feb 2025 11:57:34 +0100 Subject: [PATCH] fix(Card): remove `shadow-sm` for consistency --- docs/content/1.getting-started/3.theme.md | 2 +- src/theme/card.ts | 2 +- test/components/__snapshots__/Card-vue.spec.ts.snap | 12 ++++++------ test/components/__snapshots__/Card.spec.ts.snap | 12 ++++++------ 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/docs/content/1.getting-started/3.theme.md b/docs/content/1.getting-started/3.theme.md index ccbb1862..b4ba6a2e 100644 --- a/docs/content/1.getting-started/3.theme.md +++ b/docs/content/1.getting-started/3.theme.md @@ -636,7 +636,7 @@ Components in Nuxt UI can have multiple `slots`, each representing a distinct HT ```ts [src/theme/card.ts] export default { slots: { - root: 'bg-(--ui-bg) ring ring-(--ui-border) divide-y divide-(--ui-border) rounded-[calc(var(--ui-radius)*2)] shadow-sm', + root: 'bg-(--ui-bg) ring ring-(--ui-border) divide-y divide-(--ui-border) rounded-[calc(var(--ui-radius)*2)]', header: 'p-4 sm:px-6', body: 'p-4 sm:p-6', footer: 'p-4 sm:px-6' diff --git a/src/theme/card.ts b/src/theme/card.ts index bdc76e50..7ab2f762 100644 --- a/src/theme/card.ts +++ b/src/theme/card.ts @@ -1,6 +1,6 @@ export default { slots: { - root: 'bg-(--ui-bg) ring ring-(--ui-border) divide-y divide-(--ui-border) rounded-[calc(var(--ui-radius)*2)] shadow-sm', + root: 'bg-(--ui-bg) ring ring-(--ui-border) divide-y divide-(--ui-border) rounded-[calc(var(--ui-radius)*2)]', header: 'p-4 sm:px-6', body: 'p-4 sm:p-6', footer: 'p-4 sm:px-6' diff --git a/test/components/__snapshots__/Card-vue.spec.ts.snap b/test/components/__snapshots__/Card-vue.spec.ts.snap index 96474eee..32c9ab41 100644 --- a/test/components/__snapshots__/Card-vue.spec.ts.snap +++ b/test/components/__snapshots__/Card-vue.spec.ts.snap @@ -1,7 +1,7 @@ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html exports[`Card > renders with as correctly 1`] = ` -"
+"
@@ -9,7 +9,7 @@ exports[`Card > renders with as correctly 1`] = ` `; exports[`Card > renders with class correctly 1`] = ` -"
+"
@@ -17,7 +17,7 @@ exports[`Card > renders with class correctly 1`] = ` `; exports[`Card > renders with default slot correctly 1`] = ` -"
+"
Default slot
@@ -25,7 +25,7 @@ exports[`Card > renders with default slot correctly 1`] = ` `; exports[`Card > renders with footer slot correctly 1`] = ` -"
+"
Footer slot
@@ -33,7 +33,7 @@ exports[`Card > renders with footer slot correctly 1`] = ` `; exports[`Card > renders with header slot correctly 1`] = ` -"
+"
Header slot
@@ -41,7 +41,7 @@ exports[`Card > renders with header slot correctly 1`] = ` `; exports[`Card > renders with ui correctly 1`] = ` -"
+"
diff --git a/test/components/__snapshots__/Card.spec.ts.snap b/test/components/__snapshots__/Card.spec.ts.snap index 96474eee..32c9ab41 100644 --- a/test/components/__snapshots__/Card.spec.ts.snap +++ b/test/components/__snapshots__/Card.spec.ts.snap @@ -1,7 +1,7 @@ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html exports[`Card > renders with as correctly 1`] = ` -"
+"
@@ -9,7 +9,7 @@ exports[`Card > renders with as correctly 1`] = ` `; exports[`Card > renders with class correctly 1`] = ` -"
+"
@@ -17,7 +17,7 @@ exports[`Card > renders with class correctly 1`] = ` `; exports[`Card > renders with default slot correctly 1`] = ` -"
+"
Default slot
@@ -25,7 +25,7 @@ exports[`Card > renders with default slot correctly 1`] = ` `; exports[`Card > renders with footer slot correctly 1`] = ` -"
+"
Footer slot
@@ -33,7 +33,7 @@ exports[`Card > renders with footer slot correctly 1`] = ` `; exports[`Card > renders with header slot correctly 1`] = ` -"
+"
Header slot
@@ -41,7 +41,7 @@ exports[`Card > renders with header slot correctly 1`] = ` `; exports[`Card > renders with ui correctly 1`] = ` -"
+"