From 0634a756a496f5131841abafd218ae7e4aaa61e5 Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Wed, 21 May 2025 15:24:20 +0200 Subject: [PATCH] fix(Tooltip): increase padding for consistency --- src/theme/tooltip.ts | 2 +- .../__snapshots__/Tooltip-vue.spec.ts.snap | 14 +++++++------- test/components/__snapshots__/Tooltip.spec.ts.snap | 14 +++++++------- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/theme/tooltip.ts b/src/theme/tooltip.ts index 12029adb..cbd51e48 100644 --- a/src/theme/tooltip.ts +++ b/src/theme/tooltip.ts @@ -1,6 +1,6 @@ export default { slots: { - content: 'flex items-center gap-1 bg-default text-highlighted shadow-sm rounded-sm ring ring-default h-6 px-2 py-1 text-xs select-none data-[state=delayed-open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in] origin-(--reka-tooltip-content-transform-origin) pointer-events-auto', + content: 'flex items-center gap-1 bg-default text-highlighted shadow-sm rounded-sm ring ring-default h-6 px-2.5 py-1 text-xs select-none data-[state=delayed-open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in] origin-(--reka-tooltip-content-transform-origin) pointer-events-auto', arrow: 'fill-default', text: 'truncate', kbds: `hidden lg:inline-flex items-center shrink-0 gap-0.5 before:content-['·'] before:me-0.5`, diff --git a/test/components/__snapshots__/Tooltip-vue.spec.ts.snap b/test/components/__snapshots__/Tooltip-vue.spec.ts.snap index afcd64f0..d398462c 100644 --- a/test/components/__snapshots__/Tooltip-vue.spec.ts.snap +++ b/test/components/__snapshots__/Tooltip-vue.spec.ts.snap @@ -6,7 +6,7 @@ exports[`Tooltip > renders with arrow correctly 1`] = `
-
Tooltip +
Tooltip
@@ -21,7 +21,7 @@ exports[`Tooltip > renders with class correctly 1`] = `
-
Tooltip +
Tooltip
@@ -37,7 +37,7 @@ exports[`Tooltip > renders with content slot correctly 1`] = `
-
Content slot +
Content slot
@@ -52,7 +52,7 @@ exports[`Tooltip > renders with default slot correctly 1`] = `
-
Tooltip +
Tooltip
@@ -68,7 +68,7 @@ exports[`Tooltip > renders with kbds correctly 1`] = `
-
Tooltip +
Tooltip
@@ -83,7 +83,7 @@ exports[`Tooltip > renders with text correctly 1`] = `
-
Tooltip +
Tooltip
@@ -99,7 +99,7 @@ exports[`Tooltip > renders with ui correctly 1`] = `
-
Tooltip +
Tooltip
diff --git a/test/components/__snapshots__/Tooltip.spec.ts.snap b/test/components/__snapshots__/Tooltip.spec.ts.snap index 41481907..8699ab24 100644 --- a/test/components/__snapshots__/Tooltip.spec.ts.snap +++ b/test/components/__snapshots__/Tooltip.spec.ts.snap @@ -6,7 +6,7 @@ exports[`Tooltip > renders with arrow correctly 1`] = `
-
Tooltip +
Tooltip
@@ -21,7 +21,7 @@ exports[`Tooltip > renders with class correctly 1`] = `
-
Tooltip +
Tooltip
@@ -37,7 +37,7 @@ exports[`Tooltip > renders with content slot correctly 1`] = `
-
Content slot +
Content slot
@@ -52,7 +52,7 @@ exports[`Tooltip > renders with default slot correctly 1`] = `
-
Tooltip +
Tooltip
@@ -68,7 +68,7 @@ exports[`Tooltip > renders with kbds correctly 1`] = `
-
Tooltip +
Tooltip
@@ -83,7 +83,7 @@ exports[`Tooltip > renders with text correctly 1`] = `
-
Tooltip +
Tooltip
@@ -99,7 +99,7 @@ exports[`Tooltip > renders with ui correctly 1`] = `
-
Tooltip +
Tooltip