@atlaskit/editor-toolbar 2.3.7 → 2.3.9

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,19 @@
1
1
  # @atlaskit/editor-toolbar
2
2
 
3
+ ## 2.3.9
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 2.3.8
10
+
11
+ ### Patch Changes
12
+
13
+ - [`63f37967452f1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/63f37967452f1) -
14
+ A11Y-42687 remove redundant aria-described-by attributes from toolbar
15
+ - Updated dependencies
16
+
3
17
  ## 2.3.7
4
18
 
5
19
  ### Patch Changes
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.ToolbarTooltip = void 0;
8
8
  var _react = _interopRequireDefault(require("react"));
9
+ var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
9
10
  var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
10
11
  var ToolbarTooltip = exports.ToolbarTooltip = function ToolbarTooltip(_ref) {
11
12
  var content = _ref.content,
@@ -19,5 +20,9 @@ var ToolbarTooltip = exports.ToolbarTooltip = function ToolbarTooltip(_ref) {
19
20
  position: position,
20
21
  delay: delay,
21
22
  shortcut: shortcut
23
+ // the information in toolbar tooltips is already announced by aria-label and aria-keyshortcuts on the item
24
+ // so we need to disable screen reader announcement of tooltip to avoid duplicate announcements
25
+ ,
26
+ isScreenReaderAnnouncementDisabled: (0, _expValEquals.expValEquals)('editor_a11y__toolbar-item-aria-described-by_fy27', 'isEnabled', true)
22
27
  }, children);
23
28
  };
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
2
3
  import Tooltip from '@atlaskit/tooltip';
3
4
  export const ToolbarTooltip = ({
4
5
  content,
@@ -12,5 +13,9 @@ export const ToolbarTooltip = ({
12
13
  position: position,
13
14
  delay: delay,
14
15
  shortcut: shortcut
16
+ // the information in toolbar tooltips is already announced by aria-label and aria-keyshortcuts on the item
17
+ // so we need to disable screen reader announcement of tooltip to avoid duplicate announcements
18
+ ,
19
+ isScreenReaderAnnouncementDisabled: expValEquals('editor_a11y__toolbar-item-aria-described-by_fy27', 'isEnabled', true)
15
20
  }, children);
16
21
  };
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
2
3
  import Tooltip from '@atlaskit/tooltip';
3
4
  export var ToolbarTooltip = function ToolbarTooltip(_ref) {
4
5
  var content = _ref.content,
@@ -12,5 +13,9 @@ export var ToolbarTooltip = function ToolbarTooltip(_ref) {
12
13
  position: position,
13
14
  delay: delay,
14
15
  shortcut: shortcut
16
+ // the information in toolbar tooltips is already announced by aria-label and aria-keyshortcuts on the item
17
+ // so we need to disable screen reader announcement of tooltip to avoid duplicate announcements
18
+ ,
19
+ isScreenReaderAnnouncementDisabled: expValEquals('editor_a11y__toolbar-item-aria-described-by_fy27', 'isEnabled', true)
15
20
  }, children);
16
21
  };
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "registry": "https://registry.npmjs.org/"
5
5
  },
6
- "version": "2.3.7",
6
+ "version": "2.3.9",
7
7
  "description": "Common UI for Toolbars across the platform",
8
8
  "atlassian": {
9
9
  "react-compiler": {
@@ -29,20 +29,20 @@
29
29
  "atlaskit:src": "src/index.ts",
30
30
  "dependencies": {
31
31
  "@atlaskit/badge": "^19.1.0",
32
- "@atlaskit/browser-apis": "^1.1.0",
32
+ "@atlaskit/browser-apis": "^1.2.0",
33
33
  "@atlaskit/css": "^1.0.0",
34
34
  "@atlaskit/dropdown-menu": "^17.1.0",
35
35
  "@atlaskit/icon": "^37.1.0",
36
36
  "@atlaskit/icon-lab": "^7.4.0",
37
- "@atlaskit/platform-feature-flags": "^2.0.0",
37
+ "@atlaskit/platform-feature-flags": "^2.1.0",
38
38
  "@atlaskit/popup": "^5.1.0",
39
- "@atlaskit/primitives": "^22.0.0",
39
+ "@atlaskit/primitives": "^22.1.0",
40
40
  "@atlaskit/react-compiler-gating": "^0.2.0",
41
- "@atlaskit/tmp-editor-statsig": "^130.0.0",
42
- "@atlaskit/tokens": "^16.1.0",
41
+ "@atlaskit/tmp-editor-statsig": "^132.0.0",
42
+ "@atlaskit/tokens": "^16.2.0",
43
43
  "@atlaskit/tooltip": "^23.1.0",
44
44
  "@babel/runtime": "^7.0.0",
45
- "@compiled/react": "^0.22.2",
45
+ "@compiled/react": "^1.0.0",
46
46
  "chromatism": "^2.6.0"
47
47
  },
48
48
  "peerDependencies": {