@kenlo/kdls-design-system 2.12.0 → 2.12.1
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/dist/components/Tooltip/Tooltip.d.ts +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.css +1 -1
- package/dist/index.js +1086 -1080
- package/kdls-manifest.json +2 -2
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@ export type TooltipPosition = 'top' | 'topLeft' | 'topRight' | 'right' | 'rightT
|
|
|
4
4
|
export interface TooltipProps {
|
|
5
5
|
/** Text shown inside the tooltip on hovering or focusing the trigger. */
|
|
6
6
|
content: string;
|
|
7
|
-
/** Trigger element — receives hover/focus to show the tooltip (button, text, etc.). When omitted, renders the DS's default info icon (fixed — the icon and color can't be changed). */
|
|
7
|
+
/** Trigger element — receives hover/focus to show the tooltip (button, text, etc.). When omitted, renders the DS's default info icon (fixed — the icon and color can't be changed), which takes keyboard focus and is announced to screen readers by the `content` text. */
|
|
8
8
|
children?: React.ReactNode;
|
|
9
9
|
/** Tooltip position relative to the trigger. Automatically flips to the opposite side when there's no space in the requested direction. */
|
|
10
10
|
placement?: TooltipPosition;
|