@atlaskit/atlassian-navigation 3.3.6 → 3.4.0
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 +6 -0
- package/dist/cjs/components/Create/index.js +3 -1
- package/dist/es2019/components/Create/index.js +3 -1
- package/dist/esm/components/Create/index.js +3 -1
- package/dist/types/components/Create/index.d.ts +1 -1
- package/dist/types/components/Create/types.d.ts +4 -0
- package/dist/types-ts4.5/components/Create/index.d.ts +1 -1
- package/dist/types-ts4.5/components/Create/types.d.ts +4 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/atlassian-navigation
|
|
2
2
|
|
|
3
|
+
## 3.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#85960](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/85960) [`529d60f091ea`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/529d60f091ea) - Add aria label prop for Create button
|
|
8
|
+
|
|
3
9
|
## 3.3.6
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -57,7 +57,8 @@ var Create = exports.Create = function Create(_ref2) {
|
|
|
57
57
|
text = _ref2.text,
|
|
58
58
|
buttonTooltip = _ref2.buttonTooltip,
|
|
59
59
|
iconButtonTooltip = _ref2.iconButtonTooltip,
|
|
60
|
-
testId = _ref2.testId
|
|
60
|
+
testId = _ref2.testId,
|
|
61
|
+
label = _ref2.label;
|
|
61
62
|
var theme = (0, _theme.useTheme)();
|
|
62
63
|
return (0, _react2.jsx)("div", {
|
|
63
64
|
css: wrapperStyles,
|
|
@@ -67,6 +68,7 @@ var Create = exports.Create = function Create(_ref2) {
|
|
|
67
68
|
buttonTooltip: buttonTooltip
|
|
68
69
|
}, (0, _react2.jsx)(_customThemeButton.default, {
|
|
69
70
|
id: "createGlobalItem",
|
|
71
|
+
"aria-label": label,
|
|
70
72
|
onClick: onClick,
|
|
71
73
|
href: href
|
|
72
74
|
// eslint-disable-next-line @repo/internal/react/no-unsafe-overrides
|
|
@@ -53,7 +53,8 @@ export const Create = ({
|
|
|
53
53
|
text,
|
|
54
54
|
buttonTooltip,
|
|
55
55
|
iconButtonTooltip,
|
|
56
|
-
testId
|
|
56
|
+
testId,
|
|
57
|
+
label
|
|
57
58
|
}) => {
|
|
58
59
|
const theme = useTheme();
|
|
59
60
|
return jsx("div", {
|
|
@@ -64,6 +65,7 @@ export const Create = ({
|
|
|
64
65
|
buttonTooltip: buttonTooltip
|
|
65
66
|
}, jsx(Button, {
|
|
66
67
|
id: "createGlobalItem",
|
|
68
|
+
"aria-label": label,
|
|
67
69
|
onClick: onClick,
|
|
68
70
|
href: href
|
|
69
71
|
// eslint-disable-next-line @repo/internal/react/no-unsafe-overrides
|
|
@@ -49,7 +49,8 @@ export var Create = function Create(_ref2) {
|
|
|
49
49
|
text = _ref2.text,
|
|
50
50
|
buttonTooltip = _ref2.buttonTooltip,
|
|
51
51
|
iconButtonTooltip = _ref2.iconButtonTooltip,
|
|
52
|
-
testId = _ref2.testId
|
|
52
|
+
testId = _ref2.testId,
|
|
53
|
+
label = _ref2.label;
|
|
53
54
|
var theme = useTheme();
|
|
54
55
|
return jsx("div", {
|
|
55
56
|
css: wrapperStyles,
|
|
@@ -59,6 +60,7 @@ export var Create = function Create(_ref2) {
|
|
|
59
60
|
buttonTooltip: buttonTooltip
|
|
60
61
|
}, jsx(Button, {
|
|
61
62
|
id: "createGlobalItem",
|
|
63
|
+
"aria-label": label,
|
|
62
64
|
onClick: onClick,
|
|
63
65
|
href: href
|
|
64
66
|
// eslint-disable-next-line @repo/internal/react/no-unsafe-overrides
|
|
@@ -9,5 +9,5 @@ import { CreateProps } from './types';
|
|
|
9
9
|
* - [Examples](https://atlassian.design/components/atlassian-navigation/examples#create)
|
|
10
10
|
* - [Code](https://atlassian.design/components/atlassian-navigation/code)
|
|
11
11
|
*/
|
|
12
|
-
export declare const Create: ({ onClick, href, text, buttonTooltip, iconButtonTooltip, testId, }: CreateProps) => jsx.JSX.Element;
|
|
12
|
+
export declare const Create: ({ onClick, href, text, buttonTooltip, iconButtonTooltip, testId, label, }: CreateProps) => jsx.JSX.Element;
|
|
13
13
|
export default Create;
|
|
@@ -9,5 +9,5 @@ import { CreateProps } from './types';
|
|
|
9
9
|
* - [Examples](https://atlassian.design/components/atlassian-navigation/examples#create)
|
|
10
10
|
* - [Code](https://atlassian.design/components/atlassian-navigation/code)
|
|
11
11
|
*/
|
|
12
|
-
export declare const Create: ({ onClick, href, text, buttonTooltip, iconButtonTooltip, testId, }: CreateProps) => jsx.JSX.Element;
|
|
12
|
+
export declare const Create: ({ onClick, href, text, buttonTooltip, iconButtonTooltip, testId, label, }: CreateProps) => jsx.JSX.Element;
|
|
13
13
|
export default Create;
|