@inbeat/ui 0.11.1 → 0.11.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.11.2](https://github.com/Genoux/ib-toolkit/compare/ui-v0.11.1...ui-v0.11.2) (2026-10-09)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **ui:** open tooltips on keyboard focus only ([#56](https://github.com/Genoux/ib-toolkit/issues/56)) ([cee23e3](https://github.com/Genoux/ib-toolkit/commit/cee23e3d16012e27bc16ea19b8f6830a4a439e63))
9
+
3
10
  ## [0.11.1](https://github.com/Genoux/ib-toolkit/compare/ui-v0.11.0...ui-v0.11.1) (2026-10-08)
4
11
 
5
12
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inbeat/ui",
3
- "version": "0.11.1",
3
+ "version": "0.11.2",
4
4
  "description": "inBeat design tokens and primitives (Radix + Tailwind v4), shipped as source",
5
5
  "type": "module",
6
6
  "sideEffects": [
@@ -64,7 +64,7 @@
64
64
  "@base-ui/react": "^1.2.0",
65
65
  "@fontsource-variable/geist": "^5.3.0",
66
66
  "@fontsource-variable/geist-mono": "^5.3.0",
67
- "@inbeat/config": "^0.11.1",
67
+ "@inbeat/config": "^0.11.2",
68
68
  "@storybook/addon-a11y": "^10.6.0",
69
69
  "@storybook/addon-docs": "^10.6.0",
70
70
  "@storybook/addon-themes": "^10.6.0",
@@ -22,8 +22,22 @@ function TooltipRoot({ ...props }: React.ComponentProps<typeof TooltipPrimitive.
22
22
  return <TooltipPrimitive.Root data-slot="tooltip" {...props} />;
23
23
  }
24
24
 
25
- function TooltipTrigger({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Trigger>) {
26
- return <TooltipPrimitive.Trigger data-slot="tooltip-trigger" {...props} />;
25
+ function TooltipTrigger({
26
+ onFocus,
27
+ ...props
28
+ }: React.ComponentProps<typeof TooltipPrimitive.Trigger>) {
29
+ return (
30
+ <TooltipPrimitive.Trigger
31
+ data-slot="tooltip-trigger"
32
+ // Radix opens on any focus, including the auto-focus a Dialog/Sheet gives its first
33
+ // button; preventDefault makes Radix skip opening unless the focus came from the keyboard.
34
+ onFocus={(event) => {
35
+ onFocus?.(event);
36
+ if (!event.currentTarget.matches(":focus-visible")) event.preventDefault();
37
+ }}
38
+ {...props}
39
+ />
40
+ );
27
41
  }
28
42
 
29
43
  function TooltipContent({