From 34cf395f1a688404030c2a5f37417fae9b2f38d9 Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Wed, 19 Jun 2024 10:35:30 +0200 Subject: [PATCH] fix(Tooltip): put back close animation --- src/theme/tooltip.ts | 2 +- test/components/__snapshots__/Tooltip.spec.ts.snap | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/theme/tooltip.ts b/src/theme/tooltip.ts index 32c7b8e0..6669fcfe 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-white dark:bg-gray-900 text-gray-900 dark:text-white shadow rounded ring ring-gray-200 dark:ring-gray-800 h-6 px-2 py-1 text-xs select-none data-[state=delayed-open]:animate-[scale-in_100ms_ease-out]', + content: 'flex items-center gap-1 bg-white dark:bg-gray-900 text-gray-900 dark:text-white shadow rounded ring ring-gray-200 dark:ring-gray-800 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]', arrow: 'fill-gray-200 dark:fill-gray-800', text: 'truncate', kbds: `hidden lg:inline-flex items-center shrink-0 gap-0.5 before:content-['·'] before:mr-0.5` diff --git a/test/components/__snapshots__/Tooltip.spec.ts.snap b/test/components/__snapshots__/Tooltip.spec.ts.snap index a20ea5ce..803c8f1b 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 Tooltipv-if
@@ -21,7 +21,7 @@ exports[`Tooltip > renders with content slot correctly 1`] = `
-
Content slot +
Content slot Content slotv-if
@@ -36,7 +36,7 @@ exports[`Tooltip > renders with default slot correctly 1`] = `
-
Tooltip +
Tooltip Tooltipv-ifv-if
@@ -52,7 +52,7 @@ exports[`Tooltip > renders with kbds correctly 1`] = `
-
Tooltip +
Tooltip Tooltipv-if
@@ -67,7 +67,7 @@ exports[`Tooltip > renders with text correctly 1`] = `
-
Tooltip +
Tooltip Tooltipv-ifv-if