@cloudflare/component-tooltip 4.7.0 → 4.7.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,17 @@
1
1
  # Change Log
2
2
 
3
+ ## 4.7.2
4
+
5
+ ### Patch Changes
6
+
7
+ - @cloudflare/elements@3.0.6
8
+
9
+ ## 4.7.1
10
+
11
+ ### Patch Changes
12
+
13
+ - 25bc2ee144: add aria-describedby to read tooltip content on screen readers
14
+
3
15
  ## 4.7.0
4
16
 
5
17
  ### Minor Changes
package/es/Tooltip.js CHANGED
@@ -160,7 +160,8 @@ class Tooltip extends React.PureComponent {
160
160
  onMouseOver: () => ReactTooltip.show(this.tooltipElement),
161
161
  onMouseOut: () => ReactTooltip.hide(this.tooltipElement),
162
162
  "aria-controls": id,
163
- "aria-label": ariaLabel
163
+ "aria-label": ariaLabel,
164
+ "aria-describedby": id
164
165
  }, buttonProps), children));
165
166
  }
166
167
 
package/lib/Tooltip.js CHANGED
@@ -228,7 +228,8 @@ var Tooltip = /*#__PURE__*/function (_React$PureComponent) {
228
228
  return _reactTooltip.default.hide(_this3.tooltipElement);
229
229
  },
230
230
  "aria-controls": id,
231
- "aria-label": ariaLabel
231
+ "aria-label": ariaLabel,
232
+ "aria-describedby": id
232
233
  }, buttonProps), children));
233
234
  }
234
235
  }]);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudflare/component-tooltip",
3
3
  "description": "Cloudflare Tooltip Component",
4
- "version": "4.7.0",
4
+ "version": "4.7.2",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
7
7
  "author": "James Kyle <jkyle@cloudflare.com>",
@@ -12,7 +12,7 @@
12
12
  "module": "es/index.js"
13
13
  },
14
14
  "dependencies": {
15
- "@cloudflare/elements": "^3.0.5",
15
+ "@cloudflare/elements": "^3.0.6",
16
16
  "lodash.uniqueid": "^4.0.1",
17
17
  "prop-types": "^15.6.0",
18
18
  "react-tooltip": "^3.11.6"