@atlaskit/atlassian-navigation 2.6.19 → 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,17 @@
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
+
9
+ ## 2.7.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [`f2eb005a30d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f2eb005a30d) - [ux] Bottom border is now displayed when color tokens are not present, with a fallback color of N30 being used. The shadow styles that were previously visible when tokens were not present have been removed.
14
+
3
15
  ## 2.6.19
4
16
 
5
17
  ### Patch Changes
@@ -24,29 +24,7 @@ var containerStyles = (0, _react.css)({
24
24
  alignItems: 'center',
25
25
  justifyContent: 'space-between',
26
26
  flexShrink: 0,
27
- // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
28
- '[data-color-mode="light"] &, [data-color-mode="dark"] &': {
29
- // eslint-disable-next-line @atlaskit/design-system/no-unsafe-design-token-usage
30
- borderBottom: "1px solid ".concat("var(--ds-border, #091E4224)"),
31
- // TODO: (DSP-2087) Remove the below once tokens have launched
32
- '&::after': {
33
- content: 'none'
34
- }
35
- },
36
- // TODO: (DSP-2087) Remove the below once tokens have launched
37
- '&::after': {
38
- height: "var(--ds-space-050, 4px)",
39
- position: 'absolute',
40
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
41
- top: '100%',
42
- right: 0,
43
- left: 0,
44
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
45
- background: "linear-gradient(180deg, ".concat(_colors.N40A, " 0, ").concat(_colors.N40A, " 1px, ").concat(_colors.N30A, " 1px, ").concat((0, _theme.hexToRGBA)(
46
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
47
- _colors.N900, 0), " 4px)"),
48
- content: '""'
49
- }
27
+ borderBottom: "1px solid ".concat("var(--ds-border, ".concat(_colors.N30, ")"))
50
28
  });
51
29
  var leftStyles = (0, _react.css)({
52
30
  display: 'flex',
@@ -25,29 +25,7 @@ var containerStyles = (0, _react.css)({
25
25
  alignItems: 'center',
26
26
  justifyContent: 'space-between',
27
27
  flexShrink: 0,
28
- // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
29
- '[data-color-mode="light"] &, [data-color-mode="dark"] &': {
30
- // eslint-disable-next-line @atlaskit/design-system/no-unsafe-design-token-usage
31
- borderBottom: "1px solid ".concat("var(--ds-border, #091E4224)"),
32
- // TODO: (DSP-2087) Remove the below once tokens have launched
33
- '&::after': {
34
- content: 'none'
35
- }
36
- },
37
- // TODO: (DSP-2087) Remove the below once tokens have launched
38
- '&::after': {
39
- height: "var(--ds-space-050, 4px)",
40
- position: 'absolute',
41
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
42
- top: '100%',
43
- right: 0,
44
- left: 0,
45
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
46
- background: "linear-gradient(180deg, ".concat(_colors.N40A, " 0, ").concat(_colors.N40A, " 1px, ").concat(_colors.N30A, " 1px, ").concat((0, _theme.hexToRGBA)(
47
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
48
- _colors.N900, 0), " 4px)"),
49
- content: '""'
50
- }
28
+ borderBottom: "1px solid ".concat("var(--ds-border, ".concat(_colors.N30, ")"))
51
29
  });
52
30
  var leftStyles = (0, _react.css)({
53
31
  display: 'flex',
@@ -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: ""
@@ -2,9 +2,9 @@
2
2
  import { css, jsx } from '@emotion/react';
3
3
  import { NavigationAnalyticsContext } from '@atlaskit/analytics-namespaced-context';
4
4
  import { getBooleanFF } from '@atlaskit/platform-feature-flags';
5
- import { N30A, N40A, N900 } from '@atlaskit/theme/colors';
5
+ import { N30 } from '@atlaskit/theme/colors';
6
6
  import { HORIZONTAL_GLOBAL_NAV_HEIGHT } from '../../common/constants';
7
- import { defaultTheme, hexToRGBA, ThemeProvider } from '../../theme';
7
+ import { defaultTheme, ThemeProvider } from '../../theme';
8
8
  import { PrimaryItemsContainer } from '../PrimaryItemsContainer';
9
9
  import { PrimaryItemsContainer as PrimaryItemsContainerV2 } from '../PrimaryItemsContainerV2';
10
10
  const containerStyles = css({
@@ -17,29 +17,7 @@ const containerStyles = css({
17
17
  alignItems: 'center',
18
18
  justifyContent: 'space-between',
19
19
  flexShrink: 0,
20
- // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
21
- '[data-color-mode="light"] &, [data-color-mode="dark"] &': {
22
- // eslint-disable-next-line @atlaskit/design-system/no-unsafe-design-token-usage
23
- borderBottom: `1px solid ${"var(--ds-border, #091E4224)"}`,
24
- // TODO: (DSP-2087) Remove the below once tokens have launched
25
- '&::after': {
26
- content: 'none'
27
- }
28
- },
29
- // TODO: (DSP-2087) Remove the below once tokens have launched
30
- '&::after': {
31
- height: "var(--ds-space-050, 4px)",
32
- position: 'absolute',
33
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
34
- top: '100%',
35
- right: 0,
36
- left: 0,
37
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
38
- background: `linear-gradient(180deg, ${N40A} 0, ${N40A} 1px, ${N30A} 1px, ${hexToRGBA(
39
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
40
- N900, 0)} 4px)`,
41
- content: '""'
42
- }
20
+ borderBottom: `1px solid ${`var(--ds-border, ${N30})`}`
43
21
  });
44
22
  const leftStyles = css({
45
23
  display: 'flex',
@@ -1,8 +1,8 @@
1
1
  /** @jsx jsx */
2
2
  import { css, jsx } from '@emotion/react';
3
- import { N30A, N40A, N900 } from '@atlaskit/theme/colors';
3
+ import { N30 } from '@atlaskit/theme/colors';
4
4
  import { HORIZONTAL_GLOBAL_NAV_HEIGHT } from '../../common/constants';
5
- import { defaultTheme, hexToRGBA, ThemeProvider } from '../../theme';
5
+ import { defaultTheme, ThemeProvider } from '../../theme';
6
6
  import { IconButtonSkeleton } from '../IconButton/skeleton';
7
7
  import { PrimaryItemsContainerSkeleton } from '../PrimaryItemsContainer/skeleton';
8
8
  import { ProductHomeSkeleton } from '../ProductHome/skeleton';
@@ -18,29 +18,7 @@ const containerStyles = css({
18
18
  alignItems: 'center',
19
19
  justifyContent: 'space-between',
20
20
  flexShrink: 0,
21
- // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
22
- '[data-color-mode="light"] &, [data-color-mode="dark"] &': {
23
- // eslint-disable-next-line @atlaskit/design-system/no-unsafe-design-token-usage
24
- borderBottom: `1px solid ${"var(--ds-border, #091E4224)"}`,
25
- // TODO: (DSP-2087) Remove the below once tokens have launched
26
- '&::after': {
27
- content: 'none'
28
- }
29
- },
30
- // TODO: (DSP-2087) Remove the below once tokens have launched
31
- '&::after': {
32
- height: "var(--ds-space-050, 4px)",
33
- position: 'absolute',
34
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
35
- top: '100%',
36
- right: 0,
37
- left: 0,
38
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
39
- background: `linear-gradient(180deg, ${N40A} 0, ${N40A} 1px, ${N30A} 1px, ${hexToRGBA(
40
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
41
- N900, 0)} 4px)`,
42
- content: '""'
43
- }
21
+ borderBottom: `1px solid ${`var(--ds-border, ${N30})`}`
44
22
  });
45
23
  const leftStyles = css({
46
24
  display: 'flex',
@@ -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: ""
@@ -2,9 +2,9 @@
2
2
  import { css, jsx } from '@emotion/react';
3
3
  import { NavigationAnalyticsContext } from '@atlaskit/analytics-namespaced-context';
4
4
  import { getBooleanFF } from '@atlaskit/platform-feature-flags';
5
- import { N30A, N40A, N900 } from '@atlaskit/theme/colors';
5
+ import { N30 } from '@atlaskit/theme/colors';
6
6
  import { HORIZONTAL_GLOBAL_NAV_HEIGHT } from '../../common/constants';
7
- import { defaultTheme, hexToRGBA, ThemeProvider } from '../../theme';
7
+ import { defaultTheme, ThemeProvider } from '../../theme';
8
8
  import { PrimaryItemsContainer } from '../PrimaryItemsContainer';
9
9
  import { PrimaryItemsContainer as PrimaryItemsContainerV2 } from '../PrimaryItemsContainerV2';
10
10
  var containerStyles = css({
@@ -17,29 +17,7 @@ var containerStyles = css({
17
17
  alignItems: 'center',
18
18
  justifyContent: 'space-between',
19
19
  flexShrink: 0,
20
- // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
21
- '[data-color-mode="light"] &, [data-color-mode="dark"] &': {
22
- // eslint-disable-next-line @atlaskit/design-system/no-unsafe-design-token-usage
23
- borderBottom: "1px solid ".concat("var(--ds-border, #091E4224)"),
24
- // TODO: (DSP-2087) Remove the below once tokens have launched
25
- '&::after': {
26
- content: 'none'
27
- }
28
- },
29
- // TODO: (DSP-2087) Remove the below once tokens have launched
30
- '&::after': {
31
- height: "var(--ds-space-050, 4px)",
32
- position: 'absolute',
33
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
34
- top: '100%',
35
- right: 0,
36
- left: 0,
37
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
38
- background: "linear-gradient(180deg, ".concat(N40A, " 0, ").concat(N40A, " 1px, ").concat(N30A, " 1px, ").concat(hexToRGBA(
39
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
40
- N900, 0), " 4px)"),
41
- content: '""'
42
- }
20
+ borderBottom: "1px solid ".concat("var(--ds-border, ".concat(N30, ")"))
43
21
  });
44
22
  var leftStyles = css({
45
23
  display: 'flex',
@@ -1,8 +1,8 @@
1
1
  /** @jsx jsx */
2
2
  import { css, jsx } from '@emotion/react';
3
- import { N30A, N40A, N900 } from '@atlaskit/theme/colors';
3
+ import { N30 } from '@atlaskit/theme/colors';
4
4
  import { HORIZONTAL_GLOBAL_NAV_HEIGHT } from '../../common/constants';
5
- import { defaultTheme, hexToRGBA, ThemeProvider } from '../../theme';
5
+ import { defaultTheme, ThemeProvider } from '../../theme';
6
6
  import { IconButtonSkeleton } from '../IconButton/skeleton';
7
7
  import { PrimaryItemsContainerSkeleton } from '../PrimaryItemsContainer/skeleton';
8
8
  import { ProductHomeSkeleton } from '../ProductHome/skeleton';
@@ -18,29 +18,7 @@ var containerStyles = css({
18
18
  alignItems: 'center',
19
19
  justifyContent: 'space-between',
20
20
  flexShrink: 0,
21
- // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
22
- '[data-color-mode="light"] &, [data-color-mode="dark"] &': {
23
- // eslint-disable-next-line @atlaskit/design-system/no-unsafe-design-token-usage
24
- borderBottom: "1px solid ".concat("var(--ds-border, #091E4224)"),
25
- // TODO: (DSP-2087) Remove the below once tokens have launched
26
- '&::after': {
27
- content: 'none'
28
- }
29
- },
30
- // TODO: (DSP-2087) Remove the below once tokens have launched
31
- '&::after': {
32
- height: "var(--ds-space-050, 4px)",
33
- position: 'absolute',
34
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
35
- top: '100%',
36
- right: 0,
37
- left: 0,
38
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
39
- background: "linear-gradient(180deg, ".concat(N40A, " 0, ").concat(N40A, " 1px, ").concat(N30A, " 1px, ").concat(hexToRGBA(
40
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
41
- N900, 0), " 4px)"),
42
- content: '""'
43
- }
21
+ borderBottom: "1px solid ".concat("var(--ds-border, ".concat(N30, ")"))
44
22
  });
45
23
  var leftStyles = css({
46
24
  display: 'flex',
@@ -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.6.19",
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",
42
- "@atlaskit/primitives": "^1.4.0",
41
+ "@atlaskit/popup": "^1.10.0",
42
+ "@atlaskit/primitives": "^1.6.0",
43
43
  "@atlaskit/theme": "^12.6.0",
44
- "@atlaskit/tokens": "^1.21.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
  }