@atlaskit/navigation-system 2.23.1 → 3.0.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 CHANGED
@@ -1,5 +1,20 @@
1
1
  # @atlassian/navigation-system
2
2
 
3
+ ## 3.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [`f32509352e004`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f32509352e004) -
8
+ `MenuSectionHeading` has been updated to use regular text (`p` element) instead of a heading (`h2`
9
+ element). This change was behind a feature flag, which has now been cleaned up.
10
+
11
+ This has been done to resolve accessibility issues with the component. It does not need to be a
12
+ heading semantically.
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies
17
+
3
18
  ## 2.23.1
4
19
 
5
20
  ### 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 (0, _platformFeatureFlags.fg)('platform_dst_nav4_menu_section_heading_a11y') ? /*#__PURE__*/React.createElement("p", {
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);
@@ -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 fg('platform_dst_nav4_menu_section_heading_a11y') ? /*#__PURE__*/React.createElement("p", {
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);
@@ -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 fg('platform_dst_nav4_menu_section_heading_a11y') ? /*#__PURE__*/React.createElement("p", {
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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/navigation-system",
3
- "version": "2.23.1",
3
+ "version": "3.0.0",
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,7 +79,7 @@
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": "^15.0.0",
82
+ "@atlaskit/primitives": "^16.0.0",
83
83
  "@atlaskit/tokens": "^7.0.0",
84
84
  "@atlaskit/tooltip": "^20.5.0",
85
85
  "@atlaskit/visually-hidden": "^3.0.0",
@@ -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
  },