@atlaskit/page-layout 3.1.4 → 3.1.5

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,11 @@
1
1
  # @atlaskit/page-layout
2
2
 
3
+ ## 3.1.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [#91041](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91041) [`c5634a5ddf4f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c5634a5ddf4f) - Fix a11y failure in ResizeButton by replacing empty div with span element.
8
+
3
9
  ## 3.1.4
4
10
 
5
11
  ### Patch Changes
@@ -12,6 +12,7 @@ var _react = require("@emotion/react");
12
12
  var _chevronRight = _interopRequireDefault(require("@atlaskit/icon/glyph/chevron-right"));
13
13
  var _curves = require("@atlaskit/motion/curves");
14
14
  var _durations = require("@atlaskit/motion/durations");
15
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
15
16
  var _responsive = require("@atlaskit/primitives/responsive");
16
17
  var _colors = require("@atlaskit/theme/colors");
17
18
  var _constants = require("../../common/constants");
@@ -86,7 +87,9 @@ var ResizeButton = function ResizeButton(_ref) {
86
87
  // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
87
88
  }, props), (0, _react.jsx)(_chevronRight.default, {
88
89
  label: ""
89
- }), (0, _react.jsx)("div", {
90
+ }), (0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.page-layout-remove-empty-div_4jg0j') ? (0, _react.jsx)("span", {
91
+ css: increaseHitAreaStyles
92
+ }) : (0, _react.jsx)("div", {
90
93
  css: increaseHitAreaStyles
91
94
  }));
92
95
  };
@@ -5,6 +5,7 @@ import { css, jsx } from '@emotion/react';
5
5
  import ChevronRight from '@atlaskit/icon/glyph/chevron-right';
6
6
  import { easeOut } from '@atlaskit/motion/curves';
7
7
  import { mediumDurationMs, smallDurationMs } from '@atlaskit/motion/durations';
8
+ import { getBooleanFF } from '@atlaskit/platform-feature-flags';
8
9
  import { UNSAFE_media } from '@atlaskit/primitives/responsive';
9
10
  import { B100, B200, N0, N200, N30A } from '@atlaskit/theme/colors';
10
11
  import { RESIZE_BUTTON_SELECTOR } from '../../common/constants';
@@ -84,7 +85,9 @@ const ResizeButton = ({
84
85
  // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
85
86
  }, props), jsx(ChevronRight, {
86
87
  label: ""
87
- }), jsx("div", {
88
+ }), getBooleanFF('platform.design-system-team.page-layout-remove-empty-div_4jg0j') ? jsx("span", {
89
+ css: increaseHitAreaStyles
90
+ }) : jsx("div", {
88
91
  css: increaseHitAreaStyles
89
92
  }));
90
93
 
@@ -8,6 +8,7 @@ import { css, jsx } from '@emotion/react';
8
8
  import ChevronRight from '@atlaskit/icon/glyph/chevron-right';
9
9
  import { easeOut } from '@atlaskit/motion/curves';
10
10
  import { mediumDurationMs, smallDurationMs } from '@atlaskit/motion/durations';
11
+ import { getBooleanFF } from '@atlaskit/platform-feature-flags';
11
12
  import { UNSAFE_media } from '@atlaskit/primitives/responsive';
12
13
  import { B100, B200, N0, N200, N30A } from '@atlaskit/theme/colors';
13
14
  import { RESIZE_BUTTON_SELECTOR } from '../../common/constants';
@@ -80,7 +81,9 @@ var ResizeButton = function ResizeButton(_ref) {
80
81
  // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
81
82
  }, props), jsx(ChevronRight, {
82
83
  label: ""
83
- }), jsx("div", {
84
+ }), getBooleanFF('platform.design-system-team.page-layout-remove-empty-div_4jg0j') ? jsx("span", {
85
+ css: increaseHitAreaStyles
86
+ }) : jsx("div", {
84
87
  css: increaseHitAreaStyles
85
88
  }));
86
89
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/page-layout",
3
- "version": "3.1.4",
3
+ "version": "3.1.5",
4
4
  "description": "A collection of components which let you compose an application's page layout.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -118,6 +118,9 @@
118
118
  },
119
119
  "platform.atlassian.griffin-navigation-redesign": {
120
120
  "type": "boolean"
121
+ },
122
+ "platform.design-system-team.page-layout-remove-empty-div_4jg0j": {
123
+ "type": "boolean"
121
124
  }
122
125
  }
123
126
  }