@khanacademy/wonder-blocks-tooltip 4.1.11 → 4.1.13

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,24 @@
1
1
  # @khanacademy/wonder-blocks-tooltip
2
2
 
3
+ ## 4.1.13
4
+
5
+ ### Patch Changes
6
+
7
+ - 9bb3cf2: Fix tooltips so that they are read out by screen readers
8
+ - Updated dependencies [b9e4946]
9
+ - Updated dependencies [b9e4946]
10
+ - @khanacademy/wonder-blocks-tokens@10.0.0
11
+ - @khanacademy/wonder-blocks-typography@3.2.0
12
+ - @khanacademy/wonder-blocks-layout@3.1.10
13
+ - @khanacademy/wonder-blocks-modal@7.1.13
14
+ - @khanacademy/wonder-blocks-core@12.2.1
15
+
16
+ ## 4.1.12
17
+
18
+ ### Patch Changes
19
+
20
+ - @khanacademy/wonder-blocks-modal@7.1.12
21
+
3
22
  ## 4.1.11
4
23
 
5
24
  ### Patch Changes
@@ -42,9 +42,12 @@ type Props = {
42
42
  */
43
43
  onActiveChanged: (active: boolean) => unknown;
44
44
  /**
45
- * Optional unique id.
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
- id?: string | undefined;
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(bubbleId: string): React.ReactNode;
162
+ _renderPopper(ariaContentId: string): React.ReactNode;
163
163
  _getHost(): Element | null | undefined;
164
164
  _renderTooltipAnchor(uniqueId: string): React.ReactNode;
165
165
  render(): React.ReactNode;