@atlaskit/atlassian-navigation 2.6.19 → 2.7.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.7.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`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.
8
+
3
9
  ## 2.6.19
4
10
 
5
11
  ### 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',
@@ -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',
@@ -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',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/atlassian-navigation",
3
- "version": "2.6.19",
3
+ "version": "2.7.0",
4
4
  "description": "A horizontal navigation component for Atlassian products.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -39,9 +39,9 @@
39
39
  "@atlaskit/logo": "*",
40
40
  "@atlaskit/platform-feature-flags": "^0.2.0",
41
41
  "@atlaskit/popup": "^1.9.0",
42
- "@atlaskit/primitives": "^1.4.0",
42
+ "@atlaskit/primitives": "^1.6.0",
43
43
  "@atlaskit/theme": "^12.6.0",
44
- "@atlaskit/tokens": "^1.21.0",
44
+ "@atlaskit/tokens": "^1.22.0",
45
45
  "@atlaskit/tooltip": "^17.8.0",
46
46
  "@atlaskit/width-detector": "^4.1.0",
47
47
  "@babel/runtime": "^7.0.0",