@atlaskit/navigation-system 2.23.1 → 3.0.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 +23 -0
- package/dist/cjs/ui/menu-section/menu-section-heading.js +1 -5
- package/dist/cjs/ui/page-layout/top-nav/top-nav-start.js +1 -1
- package/dist/es2019/ui/menu-section/menu-section-heading.js +1 -5
- package/dist/es2019/ui/page-layout/top-nav/top-nav-start.js +1 -1
- package/dist/esm/ui/menu-section/menu-section-heading.js +1 -5
- package/dist/esm/ui/page-layout/top-nav/top-nav-start.js +1 -1
- package/package.json +3 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# @atlassian/navigation-system
|
|
2
2
|
|
|
3
|
+
## 3.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`006edbc465657`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/006edbc465657) -
|
|
8
|
+
Fixes when `min-width` is applied to `TopNavStart` while the `navx-full-height-sidebar` feature
|
|
9
|
+
gate is enabled.
|
|
10
|
+
|
|
11
|
+
## 3.0.0
|
|
12
|
+
|
|
13
|
+
### Major Changes
|
|
14
|
+
|
|
15
|
+
- [`f32509352e004`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f32509352e004) -
|
|
16
|
+
`MenuSectionHeading` has been updated to use regular text (`p` element) instead of a heading (`h2`
|
|
17
|
+
element). This change was behind a feature flag, which has now been cleaned up.
|
|
18
|
+
|
|
19
|
+
This has been done to resolve accessibility issues with the component. It does not need to be a
|
|
20
|
+
heading semantically.
|
|
21
|
+
|
|
22
|
+
### Patch Changes
|
|
23
|
+
|
|
24
|
+
- Updated dependencies
|
|
25
|
+
|
|
3
26
|
## 2.23.1
|
|
4
27
|
|
|
5
28
|
### Patch Changes
|
|
@@ -9,7 +9,6 @@ exports.MenuSectionHeading = void 0;
|
|
|
9
9
|
require("./menu-section-heading.compiled.css");
|
|
10
10
|
var React = _interopRequireWildcard(require("react"));
|
|
11
11
|
var _runtime = require("@compiled/react/runtime");
|
|
12
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
13
12
|
var _menuSectionContext = require("./menu-section-context");
|
|
14
13
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
15
14
|
var styles = {
|
|
@@ -24,10 +23,7 @@ var styles = {
|
|
|
24
23
|
var MenuSectionHeading = exports.MenuSectionHeading = function MenuSectionHeading(_ref) {
|
|
25
24
|
var children = _ref.children;
|
|
26
25
|
var id = (0, _menuSectionContext.useMenuSectionContext)();
|
|
27
|
-
return
|
|
28
|
-
id: "".concat(id, "-heading"),
|
|
29
|
-
className: (0, _runtime.ax)([styles.root])
|
|
30
|
-
}, children) : /*#__PURE__*/React.createElement("h2", {
|
|
26
|
+
return /*#__PURE__*/React.createElement("p", {
|
|
31
27
|
id: "".concat(id, "-heading"),
|
|
32
28
|
className: (0, _runtime.ax)([styles.root])
|
|
33
29
|
}, children);
|
|
@@ -124,7 +124,7 @@ var TopNavStartInnerFHS = /*#__PURE__*/(0, _react.forwardRef)(function TopNavSta
|
|
|
124
124
|
"data-testid": testId,
|
|
125
125
|
className: (0, _runtime.ax)([wrapperStyles.root, wrapperStyles.fullHeightSidebar, isExpandedOnDesktop && wrapperStyles.fullHeightSidebarExpanded])
|
|
126
126
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
127
|
-
className: (0, _runtime.ax)([innerStyles.root, innerStyles.fullHeightSidebar,
|
|
127
|
+
className: (0, _runtime.ax)([innerStyles.root, innerStyles.fullHeightSidebar, (0, _platformFeatureFlags.fg)('team25-eu-jira-logo-updates-csm-jsm') && innerStyles.jiraProductLogoUpdate, isExpandedOnDesktop && innerStyles.fullHeightSidebarExpanded])
|
|
128
128
|
}, children));
|
|
129
129
|
});
|
|
130
130
|
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
import "./menu-section-heading.compiled.css";
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
5
|
import { useMenuSectionContext } from './menu-section-context';
|
|
7
6
|
const styles = {
|
|
8
7
|
root: "_11c81vhk _1rjcu2gc _syaz131l _bozg12x7"
|
|
@@ -17,10 +16,7 @@ export const MenuSectionHeading = ({
|
|
|
17
16
|
children
|
|
18
17
|
}) => {
|
|
19
18
|
const id = useMenuSectionContext();
|
|
20
|
-
return
|
|
21
|
-
id: `${id}-heading`,
|
|
22
|
-
className: ax([styles.root])
|
|
23
|
-
}, children) : /*#__PURE__*/React.createElement("h2", {
|
|
19
|
+
return /*#__PURE__*/React.createElement("p", {
|
|
24
20
|
id: `${id}-heading`,
|
|
25
21
|
className: ax([styles.root])
|
|
26
22
|
}, children);
|
|
@@ -118,7 +118,7 @@ const TopNavStartInnerFHS = /*#__PURE__*/forwardRef(function TopNavStartInnerFHS
|
|
|
118
118
|
"data-testid": testId,
|
|
119
119
|
className: ax([wrapperStyles.root, wrapperStyles.fullHeightSidebar, isExpandedOnDesktop && wrapperStyles.fullHeightSidebarExpanded])
|
|
120
120
|
}, /*#__PURE__*/React.createElement("div", {
|
|
121
|
-
className: ax([innerStyles.root, innerStyles.fullHeightSidebar,
|
|
121
|
+
className: ax([innerStyles.root, innerStyles.fullHeightSidebar, fg('team25-eu-jira-logo-updates-csm-jsm') && innerStyles.jiraProductLogoUpdate, isExpandedOnDesktop && innerStyles.fullHeightSidebarExpanded])
|
|
122
122
|
}, children));
|
|
123
123
|
});
|
|
124
124
|
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
import "./menu-section-heading.compiled.css";
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
5
|
import { useMenuSectionContext } from './menu-section-context';
|
|
7
6
|
var styles = {
|
|
8
7
|
root: "_11c81vhk _1rjcu2gc _syaz131l _bozg12x7"
|
|
@@ -16,10 +15,7 @@ var styles = {
|
|
|
16
15
|
export var MenuSectionHeading = function MenuSectionHeading(_ref) {
|
|
17
16
|
var children = _ref.children;
|
|
18
17
|
var id = useMenuSectionContext();
|
|
19
|
-
return
|
|
20
|
-
id: "".concat(id, "-heading"),
|
|
21
|
-
className: ax([styles.root])
|
|
22
|
-
}, children) : /*#__PURE__*/React.createElement("h2", {
|
|
18
|
+
return /*#__PURE__*/React.createElement("p", {
|
|
23
19
|
id: "".concat(id, "-heading"),
|
|
24
20
|
className: ax([styles.root])
|
|
25
21
|
}, children);
|
|
@@ -116,7 +116,7 @@ var TopNavStartInnerFHS = /*#__PURE__*/forwardRef(function TopNavStartInnerFHS(_
|
|
|
116
116
|
"data-testid": testId,
|
|
117
117
|
className: ax([wrapperStyles.root, wrapperStyles.fullHeightSidebar, isExpandedOnDesktop && wrapperStyles.fullHeightSidebarExpanded])
|
|
118
118
|
}, /*#__PURE__*/React.createElement("div", {
|
|
119
|
-
className: ax([innerStyles.root, innerStyles.fullHeightSidebar,
|
|
119
|
+
className: ax([innerStyles.root, innerStyles.fullHeightSidebar, fg('team25-eu-jira-logo-updates-csm-jsm') && innerStyles.jiraProductLogoUpdate, isExpandedOnDesktop && innerStyles.fullHeightSidebarExpanded])
|
|
120
120
|
}, children));
|
|
121
121
|
});
|
|
122
122
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/navigation-system",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.1",
|
|
4
4
|
"description": "The latest navigation system for Atlassian apps.",
|
|
5
5
|
"repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
|
|
6
6
|
"author": "Atlassian Pty Ltd",
|
|
@@ -79,9 +79,9 @@
|
|
|
79
79
|
"@atlaskit/pragmatic-drag-and-drop": "^1.7.0",
|
|
80
80
|
"@atlaskit/pragmatic-drag-and-drop-hitbox": "^1.1.0",
|
|
81
81
|
"@atlaskit/pragmatic-drag-and-drop-react-drop-indicator": "^3.2.0",
|
|
82
|
-
"@atlaskit/primitives": "^
|
|
82
|
+
"@atlaskit/primitives": "^16.0.0",
|
|
83
83
|
"@atlaskit/tokens": "^7.0.0",
|
|
84
|
-
"@atlaskit/tooltip": "^20.
|
|
84
|
+
"@atlaskit/tooltip": "^20.6.0",
|
|
85
85
|
"@atlaskit/visually-hidden": "^3.0.0",
|
|
86
86
|
"@babel/runtime": "^7.0.0",
|
|
87
87
|
"@compiled/react": "^0.18.6",
|
|
@@ -177,9 +177,6 @@
|
|
|
177
177
|
"platform_dst_nav4_full_height_sidebar_api_changes": {
|
|
178
178
|
"type": "boolean"
|
|
179
179
|
},
|
|
180
|
-
"platform_dst_nav4_menu_section_heading_a11y": {
|
|
181
|
-
"type": "boolean"
|
|
182
|
-
},
|
|
183
180
|
"platform-dst-tooltip-shortcuts": {
|
|
184
181
|
"type": "boolean"
|
|
185
182
|
},
|