@atlaskit/editor-plugin-toolbar-lists-indentation 11.0.4 → 11.0.6

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,22 @@
1
1
  # @atlaskit/editor-plugin-toolbar-lists-indentation
2
2
 
3
+ ## 11.0.6
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 11.0.5
10
+
11
+ ### Patch Changes
12
+
13
+ - [`d008d482e881a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d008d482e881a) -
14
+ [ux] Add accessible name (`aria-label`) to the bulleted-list toolbar button. The icon-only button
15
+ previously had only `aria-keyshortcuts="Control+Shift+8"` and no `aria-label`, causing axe
16
+ `button-name` violations and an unannounced control for screen-reader users. The localized
17
+ `bulletMessage` (already used for the tooltip) is now passed as the `label` prop on
18
+ `ToolbarButton`.
19
+
3
20
  ## 11.0.4
4
21
 
5
22
  ### Patch Changes
@@ -33,6 +33,7 @@ var BulletedListButton = exports.BulletedListButton = function BulletedListButto
33
33
  onClick: onClick,
34
34
  isSelected: isSelected,
35
35
  isDisabled: isDisabled,
36
- ariaKeyshortcuts: (0, _keymaps.getAriaKeyshortcuts)(_keymaps.toggleBulletList)
36
+ ariaKeyshortcuts: (0, _keymaps.getAriaKeyshortcuts)(_keymaps.toggleBulletList),
37
+ label: bulletMessage
37
38
  }));
38
39
  };
@@ -28,6 +28,7 @@ export const BulletedListButton = ({
28
28
  onClick: onClick,
29
29
  isSelected: isSelected,
30
30
  isDisabled: isDisabled,
31
- ariaKeyshortcuts: getAriaKeyshortcuts(toggleBulletListKeymap)
31
+ ariaKeyshortcuts: getAriaKeyshortcuts(toggleBulletListKeymap),
32
+ label: bulletMessage
32
33
  }));
33
34
  };
@@ -26,6 +26,7 @@ export var BulletedListButton = function BulletedListButton(_ref) {
26
26
  onClick: onClick,
27
27
  isSelected: isSelected,
28
28
  isDisabled: isDisabled,
29
- ariaKeyshortcuts: getAriaKeyshortcuts(toggleBulletListKeymap)
29
+ ariaKeyshortcuts: getAriaKeyshortcuts(toggleBulletListKeymap),
30
+ label: bulletMessage
30
31
  }));
31
32
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-toolbar-lists-indentation",
3
- "version": "11.0.4",
3
+ "version": "11.0.6",
4
4
  "description": "Toolbar lists and indentation plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -44,12 +44,12 @@
44
44
  "@atlaskit/editor-toolbar-model": "^0.4.0",
45
45
  "@atlaskit/icon": "^34.3.0",
46
46
  "@atlaskit/platform-feature-flags": "^1.1.0",
47
- "@atlaskit/tmp-editor-statsig": "^66.0.0",
47
+ "@atlaskit/tmp-editor-statsig": "^67.0.0",
48
48
  "@atlaskit/tokens": "^13.0.0",
49
49
  "@babel/runtime": "^7.0.0"
50
50
  },
51
51
  "peerDependencies": {
52
- "@atlaskit/editor-common": "^114.7.0",
52
+ "@atlaskit/editor-common": "^114.8.0",
53
53
  "react": "^18.2.0",
54
54
  "react-dom": "^18.2.0",
55
55
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"