@atlaskit/dropdown-menu 16.5.0 → 16.5.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 +14 -0
- package/dist/cjs/internal/components/checkbox-icon.js +1 -1
- package/dist/cjs/internal/components/group-title.js +1 -1
- package/dist/cjs/internal/components/menu-wrapper.js +1 -1
- package/dist/cjs/internal/components/radio-icon.js +1 -1
- package/dist/cjs/radio/dropdown-item-radio.js +4 -1
- package/dist/es2019/internal/components/checkbox-icon.js +1 -1
- package/dist/es2019/internal/components/group-title.js +1 -1
- package/dist/es2019/internal/components/menu-wrapper.js +1 -1
- package/dist/es2019/internal/components/radio-icon.js +1 -1
- package/dist/es2019/radio/dropdown-item-radio.js +4 -1
- package/dist/esm/internal/components/checkbox-icon.js +1 -1
- package/dist/esm/internal/components/group-title.js +1 -1
- package/dist/esm/internal/components/menu-wrapper.js +1 -1
- package/dist/esm/internal/components/radio-icon.js +1 -1
- package/dist/esm/radio/dropdown-item-radio.js +4 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/dropdown-menu
|
|
2
2
|
|
|
3
|
+
## 16.5.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`2c4cac9c7d714`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2c4cac9c7d714) -
|
|
8
|
+
Removed inappropriate `aria-current` attribute from DropdownItemRadio. The `aria-checked`
|
|
9
|
+
attribute already provides the correct semantics for radio-style menu items.
|
|
10
|
+
|
|
11
|
+
## 16.5.1
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 16.5.0
|
|
4
18
|
|
|
5
19
|
### Minor Changes
|
|
@@ -89,7 +89,10 @@ var DropdownItemRadio = function DropdownItemRadio(_ref) {
|
|
|
89
89
|
title: title,
|
|
90
90
|
interactionName: interactionName
|
|
91
91
|
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
92
|
-
}, rest
|
|
92
|
+
}, rest, {
|
|
93
|
+
// Override ButtonItem's default aria-current, as aria-checked is the correct attribute for menuitemradio (A11Y-37930)
|
|
94
|
+
"aria-current": undefined
|
|
95
|
+
}), children), /*#__PURE__*/_react.default.createElement(_visuallyHidden.default, {
|
|
93
96
|
id: "".concat(id, "-radio")
|
|
94
97
|
}, "radio button ", selected));
|
|
95
98
|
};
|
|
@@ -71,7 +71,10 @@ const DropdownItemRadio = ({
|
|
|
71
71
|
title: title,
|
|
72
72
|
interactionName: interactionName
|
|
73
73
|
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
74
|
-
}, rest
|
|
74
|
+
}, rest, {
|
|
75
|
+
// Override ButtonItem's default aria-current, as aria-checked is the correct attribute for menuitemradio (A11Y-37930)
|
|
76
|
+
"aria-current": undefined
|
|
77
|
+
}), children), /*#__PURE__*/React.createElement(VisuallyHidden, {
|
|
75
78
|
id: `${id}-radio`
|
|
76
79
|
}, "radio button ", selected));
|
|
77
80
|
};
|
|
@@ -80,7 +80,10 @@ var DropdownItemRadio = function DropdownItemRadio(_ref) {
|
|
|
80
80
|
title: title,
|
|
81
81
|
interactionName: interactionName
|
|
82
82
|
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
83
|
-
}, rest
|
|
83
|
+
}, rest, {
|
|
84
|
+
// Override ButtonItem's default aria-current, as aria-checked is the correct attribute for menuitemradio (A11Y-37930)
|
|
85
|
+
"aria-current": undefined
|
|
86
|
+
}), children), /*#__PURE__*/React.createElement(VisuallyHidden, {
|
|
84
87
|
id: "".concat(id, "-radio")
|
|
85
88
|
}, "radio button ", selected));
|
|
86
89
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/dropdown-menu",
|
|
3
|
-
"version": "16.5.
|
|
3
|
+
"version": "16.5.2",
|
|
4
4
|
"description": "A dropdown menu displays a list of actions or options to a user.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@atlaskit/button": "^23.
|
|
27
|
+
"@atlaskit/button": "^23.10.0",
|
|
28
28
|
"@atlaskit/css": "^0.19.0",
|
|
29
29
|
"@atlaskit/ds-lib": "^5.3.0",
|
|
30
30
|
"@atlaskit/icon": "^32.0.0",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"@atlaskit/popup": "^4.13.0",
|
|
35
35
|
"@atlaskit/primitives": "^18.0.0",
|
|
36
36
|
"@atlaskit/spinner": "^19.0.0",
|
|
37
|
-
"@atlaskit/theme": "^
|
|
37
|
+
"@atlaskit/theme": "^22.0.0",
|
|
38
38
|
"@atlaskit/tokens": "^11.0.0",
|
|
39
39
|
"@atlaskit/visually-hidden": "^3.0.0",
|
|
40
40
|
"@babel/runtime": "^7.0.0",
|
|
@@ -52,8 +52,8 @@
|
|
|
52
52
|
"@atlaskit/atlassian-navigation": "^5.6.0",
|
|
53
53
|
"@atlaskit/avatar": "^25.8.0",
|
|
54
54
|
"@atlaskit/checkbox": "^17.3.0",
|
|
55
|
-
"@atlaskit/docs": "^11.
|
|
56
|
-
"@atlaskit/form": "^15.
|
|
55
|
+
"@atlaskit/docs": "^11.6.0",
|
|
56
|
+
"@atlaskit/form": "^15.4.0",
|
|
57
57
|
"@atlaskit/heading": "^5.3.0",
|
|
58
58
|
"@atlaskit/link": "^3.3.0",
|
|
59
59
|
"@atlaskit/lozenge": "^13.4.0",
|