@atlaskit/atlassian-navigation 2.7.0 → 2.8.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,11 @@
1
1
  # @atlaskit/atlassian-navigation
2
2
 
3
+ ## 2.8.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#40069](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/40069) [`d84be9a0f39`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d84be9a0f39) - [ux] We are testing icon button intenal spacing fix. We had to make related changes in dropdown menu button behind a fetaure flag. There is no visual difference but external changes instead. If the spacing fix is successful it will be available in a later release.
8
+
3
9
  ## 2.7.0
4
10
 
5
11
  ### Minor Changes
@@ -9,6 +9,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
9
9
  var _react = require("react");
10
10
  var _react2 = require("@emotion/react");
11
11
  var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/glyph/chevron-down"));
12
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
12
13
  var _primitives = require("@atlaskit/primitives");
13
14
  var _PrimaryButton = require("../PrimaryButton");
14
15
  /** @jsx jsx */
@@ -16,6 +17,10 @@ var _PrimaryButton = require("../PrimaryButton");
16
17
  var chevronIconStyles = (0, _primitives.xcss)({
17
18
  opacity: 0.51
18
19
  });
20
+ var chevronIconStylesWithSpacingFixStyles = (0, _primitives.xcss)({
21
+ opacity: 0.51,
22
+ marginInlineEnd: "var(--ds-space-negative-050, -0.25rem)"
23
+ });
19
24
 
20
25
  /**
21
26
  * __Primary dropdown button__
@@ -29,7 +34,7 @@ var chevronIconStyles = (0, _primitives.xcss)({
29
34
  var PrimaryDropdownButton = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
30
35
  return (0, _react2.jsx)(_PrimaryButton.PrimaryButton, (0, _extends2.default)({
31
36
  iconAfter: (0, _react2.jsx)(_primitives.Bleed, {
32
- xcss: chevronIconStyles,
37
+ xcss: (0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.icon-button-spacing-fix_o1zc5') ? chevronIconStylesWithSpacingFixStyles : chevronIconStyles,
33
38
  inline: "space.100"
34
39
  }, (0, _react2.jsx)(_chevronDown.default, {
35
40
  label: ""
@@ -3,11 +3,16 @@ import _extends from "@babel/runtime/helpers/extends";
3
3
  import { forwardRef } from 'react';
4
4
  import { jsx } from '@emotion/react';
5
5
  import ChevronIcon from '@atlaskit/icon/glyph/chevron-down';
6
+ import { getBooleanFF } from '@atlaskit/platform-feature-flags';
6
7
  import { Bleed, xcss } from '@atlaskit/primitives';
7
8
  import { PrimaryButton } from '../PrimaryButton';
8
9
  const chevronIconStyles = xcss({
9
10
  opacity: 0.51
10
11
  });
12
+ const chevronIconStylesWithSpacingFixStyles = xcss({
13
+ opacity: 0.51,
14
+ marginInlineEnd: `${"var(--ds-space-negative-050, -0.25rem)"}`
15
+ });
11
16
 
12
17
  /**
13
18
  * __Primary dropdown button__
@@ -21,7 +26,7 @@ const chevronIconStyles = xcss({
21
26
  export const PrimaryDropdownButton = /*#__PURE__*/forwardRef((props, ref) => {
22
27
  return jsx(PrimaryButton, _extends({
23
28
  iconAfter: jsx(Bleed, {
24
- xcss: chevronIconStyles,
29
+ xcss: getBooleanFF('platform.design-system-team.icon-button-spacing-fix_o1zc5') ? chevronIconStylesWithSpacingFixStyles : chevronIconStyles,
25
30
  inline: "space.100"
26
31
  }, jsx(ChevronIcon, {
27
32
  label: ""
@@ -3,11 +3,16 @@ import _extends from "@babel/runtime/helpers/extends";
3
3
  import { forwardRef } from 'react';
4
4
  import { jsx } from '@emotion/react';
5
5
  import ChevronIcon from '@atlaskit/icon/glyph/chevron-down';
6
+ import { getBooleanFF } from '@atlaskit/platform-feature-flags';
6
7
  import { Bleed, xcss } from '@atlaskit/primitives';
7
8
  import { PrimaryButton } from '../PrimaryButton';
8
9
  var chevronIconStyles = xcss({
9
10
  opacity: 0.51
10
11
  });
12
+ var chevronIconStylesWithSpacingFixStyles = xcss({
13
+ opacity: 0.51,
14
+ marginInlineEnd: "var(--ds-space-negative-050, -0.25rem)"
15
+ });
11
16
 
12
17
  /**
13
18
  * __Primary dropdown button__
@@ -21,7 +26,7 @@ var chevronIconStyles = xcss({
21
26
  export var PrimaryDropdownButton = /*#__PURE__*/forwardRef(function (props, ref) {
22
27
  return jsx(PrimaryButton, _extends({
23
28
  iconAfter: jsx(Bleed, {
24
- xcss: chevronIconStyles,
29
+ xcss: getBooleanFF('platform.design-system-team.icon-button-spacing-fix_o1zc5') ? chevronIconStylesWithSpacingFixStyles : chevronIconStyles,
25
30
  inline: "space.100"
26
31
  }, jsx(ChevronIcon, {
27
32
  label: ""
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/atlassian-navigation",
3
- "version": "2.7.0",
3
+ "version": "2.8.0",
4
4
  "description": "A horizontal navigation component for Atlassian products.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -38,10 +38,10 @@
38
38
  "@atlaskit/icon": "^21.12.0",
39
39
  "@atlaskit/logo": "*",
40
40
  "@atlaskit/platform-feature-flags": "^0.2.0",
41
- "@atlaskit/popup": "^1.9.0",
41
+ "@atlaskit/popup": "^1.10.0",
42
42
  "@atlaskit/primitives": "^1.6.0",
43
43
  "@atlaskit/theme": "^12.6.0",
44
- "@atlaskit/tokens": "^1.22.0",
44
+ "@atlaskit/tokens": "^1.25.0",
45
45
  "@atlaskit/tooltip": "^17.8.0",
46
46
  "@atlaskit/width-detector": "^4.1.0",
47
47
  "@babel/runtime": "^7.0.0",
@@ -97,6 +97,9 @@
97
97
  },
98
98
  "platform.design-system-team.border-checkbox_nyoiu": {
99
99
  "type": "boolean"
100
+ },
101
+ "platform.design-system-team.icon-button-spacing-fix_o1zc5": {
102
+ "type": "boolean"
100
103
  }
101
104
  }
102
105
  }