@khanacademy/wonder-blocks-tooltip 4.1.12 → 4.1.14
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 +24 -0
- package/dist/components/tooltip-anchor.d.ts +5 -4
- package/dist/components/tooltip.d.ts +1 -1
- package/dist/es/index.js +10 -856
- package/dist/index.js +10 -859
- package/package.json +7 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# @khanacademy/wonder-blocks-tooltip
|
|
2
2
|
|
|
3
|
+
## 4.1.14
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [28fa0c0]
|
|
8
|
+
- Updated dependencies [28fa0c0]
|
|
9
|
+
- @khanacademy/wonder-blocks-core@12.3.0
|
|
10
|
+
- @khanacademy/wonder-blocks-layout@3.1.11
|
|
11
|
+
- @khanacademy/wonder-blocks-modal@7.1.14
|
|
12
|
+
- @khanacademy/wonder-blocks-typography@3.2.1
|
|
13
|
+
|
|
14
|
+
## 4.1.13
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- 9bb3cf2: Fix tooltips so that they are read out by screen readers
|
|
19
|
+
- Updated dependencies [b9e4946]
|
|
20
|
+
- Updated dependencies [b9e4946]
|
|
21
|
+
- @khanacademy/wonder-blocks-tokens@10.0.0
|
|
22
|
+
- @khanacademy/wonder-blocks-typography@3.2.0
|
|
23
|
+
- @khanacademy/wonder-blocks-layout@3.1.10
|
|
24
|
+
- @khanacademy/wonder-blocks-modal@7.1.13
|
|
25
|
+
- @khanacademy/wonder-blocks-core@12.2.1
|
|
26
|
+
|
|
3
27
|
## 4.1.12
|
|
4
28
|
|
|
5
29
|
### Patch Changes
|
|
@@ -42,9 +42,12 @@ type Props = {
|
|
|
42
42
|
*/
|
|
43
43
|
onActiveChanged: (active: boolean) => unknown;
|
|
44
44
|
/**
|
|
45
|
-
*
|
|
45
|
+
* Required aria-describedby id.
|
|
46
|
+
* This ID will reference the text in the tooltip bubble.
|
|
47
|
+
* It should only be set to `undefined` when the tooltip bubble
|
|
48
|
+
* is not visible.
|
|
46
49
|
*/
|
|
47
|
-
|
|
50
|
+
"aria-describedby": string | undefined;
|
|
48
51
|
};
|
|
49
52
|
type DefaultProps = {
|
|
50
53
|
forceAnchorFocusivity: Props["forceAnchorFocusivity"];
|
|
@@ -66,7 +69,6 @@ export default class TooltipAnchor extends React.Component<Props, State> impleme
|
|
|
66
69
|
componentDidMount(): void;
|
|
67
70
|
componentDidUpdate(prevProps: Props): void;
|
|
68
71
|
componentWillUnmount(): void;
|
|
69
|
-
static ariaContentId: string;
|
|
70
72
|
activeStateStolen: () => void;
|
|
71
73
|
_updateFocusivity(): void;
|
|
72
74
|
_updateActiveState(hovered: boolean, focused: boolean): void;
|
|
@@ -78,7 +80,6 @@ export default class TooltipAnchor extends React.Component<Props, State> impleme
|
|
|
78
80
|
_handleMouseLeave: () => void;
|
|
79
81
|
_handleKeyUp: (e: KeyboardEvent) => void;
|
|
80
82
|
_renderAnchorableChildren(): React.ReactElement<any>;
|
|
81
|
-
_renderAccessibleChildren(uniqueId: string): React.ReactNode;
|
|
82
83
|
render(): React.ReactNode;
|
|
83
84
|
}
|
|
84
85
|
export {};
|
|
@@ -159,7 +159,7 @@ export default class Tooltip extends React.Component<Props, State> {
|
|
|
159
159
|
state: State;
|
|
160
160
|
_updateAnchorElement(ref?: Element | null): void;
|
|
161
161
|
_renderBubbleContent(): React.ReactElement<React.ComponentProps<typeof TooltipContent>>;
|
|
162
|
-
_renderPopper(
|
|
162
|
+
_renderPopper(ariaContentId: string): React.ReactNode;
|
|
163
163
|
_getHost(): Element | null | undefined;
|
|
164
164
|
_renderTooltipAnchor(uniqueId: string): React.ReactNode;
|
|
165
165
|
render(): React.ReactNode;
|