@atlaskit/atlassian-navigation 3.3.6 → 3.4.1

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
  # @atlaskit/atlassian-navigation
2
2
 
3
+ ## 3.4.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#89713](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/89713) [`a2541fb3baec`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a2541fb3baec) - [ux] This release tests some default colour changes for ProductHome icons behind a feature flag. If successful, these changes will be enabled in a future release.
8
+
9
+ ## 3.4.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [#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
14
+
3
15
  ## 3.3.6
4
16
 
5
17
  ### 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
@@ -82,7 +82,7 @@ var defaultTheme = {
82
82
  // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
83
83
  iconGradientStop: _colors.B200,
84
84
  // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
85
- iconColor: _colors.B200
85
+ iconColor: (0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.brand-refresh-update-product-logos_q7coo') ? '#357DE8' : _colors.B200
86
86
  },
87
87
  primaryButton: {
88
88
  active: {
@@ -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
@@ -76,7 +76,7 @@ const defaultTheme = {
76
76
  // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
77
77
  iconGradientStop: B200,
78
78
  // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
79
- iconColor: B200
79
+ iconColor: getBooleanFF('platform.design-system-team.brand-refresh-update-product-logos_q7coo') ? '#357DE8' : B200
80
80
  },
81
81
  primaryButton: {
82
82
  active: {
@@ -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
@@ -76,7 +76,7 @@ var defaultTheme = {
76
76
  // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
77
77
  iconGradientStop: B200,
78
78
  // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
79
- iconColor: B200
79
+ iconColor: getBooleanFF('platform.design-system-team.brand-refresh-update-product-logos_q7coo') ? '#357DE8' : B200
80
80
  },
81
81
  primaryButton: {
82
82
  active: {
@@ -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;
@@ -4,6 +4,10 @@ export interface CreateProps {
4
4
  * Primary text for the call to action.
5
5
  */
6
6
  text: string;
7
+ /**
8
+ * Aria-label attribute for create button
9
+ */
10
+ label?: string;
7
11
  /**
8
12
  * Text for the button tooltip when seen on large viewports.
9
13
  */
@@ -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;
@@ -4,6 +4,10 @@ export interface CreateProps {
4
4
  * Primary text for the call to action.
5
5
  */
6
6
  text: string;
7
+ /**
8
+ * Aria-label attribute for create button
9
+ */
10
+ label?: string;
7
11
  /**
8
12
  * Text for the button tooltip when seen on large viewports.
9
13
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/atlassian-navigation",
3
- "version": "3.3.6",
3
+ "version": "3.4.1",
4
4
  "description": "A horizontal navigation component for Atlassian products.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -43,8 +43,8 @@
43
43
  },
44
44
  "dependencies": {
45
45
  "@atlaskit/analytics-namespaced-context": "^6.9.0",
46
- "@atlaskit/button": "^17.11.0",
47
- "@atlaskit/ds-lib": "^2.2.0",
46
+ "@atlaskit/button": "^17.12.0",
47
+ "@atlaskit/ds-lib": "^2.3.0",
48
48
  "@atlaskit/icon": "^22.1.0",
49
49
  "@atlaskit/logo": "*",
50
50
  "@atlaskit/platform-feature-flags": "^0.2.0",
@@ -52,7 +52,7 @@
52
52
  "@atlaskit/primitives": "^5.5.0",
53
53
  "@atlaskit/theme": "^12.7.0",
54
54
  "@atlaskit/tokens": "^1.43.0",
55
- "@atlaskit/tooltip": "^18.1.0",
55
+ "@atlaskit/tooltip": "^18.2.0",
56
56
  "@atlaskit/width-detector": "^4.1.0",
57
57
  "@babel/runtime": "^7.0.0",
58
58
  "@emotion/react": "^11.7.1",
@@ -65,7 +65,7 @@
65
65
  "devDependencies": {
66
66
  "@af/accessibility-testing": "*",
67
67
  "@af/visual-regression": "*",
68
- "@atlaskit/dropdown-menu": "^12.8.0",
68
+ "@atlaskit/dropdown-menu": "^12.9.0",
69
69
  "@atlaskit/notification-indicator": "*",
70
70
  "@atlaskit/notification-log-client": "*",
71
71
  "@atlaskit/visual-regression": "*",
@@ -111,6 +111,9 @@
111
111
  },
112
112
  "platform.design-system-team.border-checkbox_nyoiu": {
113
113
  "type": "boolean"
114
+ },
115
+ "platform.design-system-team.brand-refresh-update-product-logos_q7coo": {
116
+ "type": "boolean"
114
117
  }
115
118
  }
116
119
  }