From 99df37572c766115dfd855b6a1e7a0276969bcfa Mon Sep 17 00:00:00 2001
From: Malik-Jouda <1999.malik.jouda@gmail.com>
Date: Tue, 22 Jul 2025 12:07:28 +0300
Subject: [PATCH 1/2] fix(tooltip): show dot separator before kbds only if text
exists
---
src/theme/tooltip.ts | 2 +-
test/components/__snapshots__/Tooltip-vue.spec.ts.snap | 2 +-
test/components/__snapshots__/Tooltip.spec.ts.snap | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/theme/tooltip.ts b/src/theme/tooltip.ts
index cbd51e4815..bd95e3e29f 100644
--- a/src/theme/tooltip.ts
+++ b/src/theme/tooltip.ts
@@ -3,7 +3,7 @@ export default {
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`,
+ kbds: `hidden lg:inline-flex items-center shrink-0 gap-0.5 [&:not(:first-of-type)]:before:content-['·'] [&:not(:first-of-type)]:before:me-0.5`,
kbdsSize: 'sm'
}
}
diff --git a/test/components/__snapshots__/Tooltip-vue.spec.ts.snap b/test/components/__snapshots__/Tooltip-vue.spec.ts.snap
index 53c1034f56..96fb588e02 100644
--- a/test/components/__snapshots__/Tooltip-vue.spec.ts.snap
+++ b/test/components/__snapshots__/Tooltip-vue.spec.ts.snap
@@ -68,7 +68,7 @@ exports[`Tooltip > renders with kbds correctly 1`] = `
-
TooltipCtrlK
+
TooltipCtrlK
Tooltip
diff --git a/test/components/__snapshots__/Tooltip.spec.ts.snap b/test/components/__snapshots__/Tooltip.spec.ts.snap
index 93579c9166..cae07b47e0 100644
--- a/test/components/__snapshots__/Tooltip.spec.ts.snap
+++ b/test/components/__snapshots__/Tooltip.spec.ts.snap
@@ -68,7 +68,7 @@ exports[`Tooltip > renders with kbds correctly 1`] = `
-
TooltipCtrlK
+
TooltipCtrlK
Tooltip
From 0dc5daf6495723fa853ed8e366462129d3edfcaa Mon Sep 17 00:00:00 2001
From: Malik-Jouda <1999.malik.jouda@gmail.com>
Date: Tue, 22 Jul 2025 15:20:54 +0300
Subject: [PATCH 2/2] up
---
src/theme/tooltip.ts | 2 +-
test/components/__snapshots__/Tooltip-vue.spec.ts.snap | 2 +-
test/components/__snapshots__/Tooltip.spec.ts.snap | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/theme/tooltip.ts b/src/theme/tooltip.ts
index bd95e3e29f..b740180ab3 100644
--- a/src/theme/tooltip.ts
+++ b/src/theme/tooltip.ts
@@ -3,7 +3,7 @@ export default {
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 [&:not(:first-of-type)]:before:content-['·'] [&:not(:first-of-type)]:before:me-0.5`,
+ kbds: `hidden lg:inline-flex items-center shrink-0 gap-0.5 not-first-of-type:before:content-['·'] not-first-of-type:before:me-0.5`,
kbdsSize: 'sm'
}
}
diff --git a/test/components/__snapshots__/Tooltip-vue.spec.ts.snap b/test/components/__snapshots__/Tooltip-vue.spec.ts.snap
index 96fb588e02..9c1a39e91a 100644
--- a/test/components/__snapshots__/Tooltip-vue.spec.ts.snap
+++ b/test/components/__snapshots__/Tooltip-vue.spec.ts.snap
@@ -68,7 +68,7 @@ exports[`Tooltip > renders with kbds correctly 1`] = `
-
TooltipCtrlK
+
TooltipCtrlK
Tooltip
diff --git a/test/components/__snapshots__/Tooltip.spec.ts.snap b/test/components/__snapshots__/Tooltip.spec.ts.snap
index cae07b47e0..22a330247c 100644
--- a/test/components/__snapshots__/Tooltip.spec.ts.snap
+++ b/test/components/__snapshots__/Tooltip.spec.ts.snap
@@ -68,7 +68,7 @@ exports[`Tooltip > renders with kbds correctly 1`] = `
-
TooltipCtrlK
+
TooltipCtrlK
Tooltip