@atlaskit/atlassian-navigation 3.0.1 → 3.0.2
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 +6 -0
- package/dist/cjs/components/PrimaryDropdownButton/index.js +1 -5
- package/dist/cjs/components/SkeletonPrimaryButton/index.js +13 -14
- package/dist/es2019/components/PrimaryDropdownButton/index.js +1 -5
- package/dist/es2019/components/SkeletonPrimaryButton/index.js +13 -14
- package/dist/esm/components/PrimaryDropdownButton/index.js +1 -5
- package/dist/esm/components/SkeletonPrimaryButton/index.js +13 -14
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/atlassian-navigation
|
|
2
2
|
|
|
3
|
+
## 3.0.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#61177](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/61177) [`c8b7446ec45b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c8b7446ec45b) - [ux] Removes opacity from dropdown chevrons to support better color contrast
|
|
8
|
+
|
|
3
9
|
## 3.0.1
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -14,11 +14,7 @@ var _primitives = require("@atlaskit/primitives");
|
|
|
14
14
|
var _PrimaryButton = require("../PrimaryButton");
|
|
15
15
|
/** @jsx jsx */
|
|
16
16
|
|
|
17
|
-
var chevronIconStyles = (0, _primitives.xcss)({
|
|
18
|
-
opacity: 0.51
|
|
19
|
-
});
|
|
20
17
|
var chevronIconStylesWithSpacingFixStyles = (0, _primitives.xcss)({
|
|
21
|
-
opacity: 0.51,
|
|
22
18
|
marginInlineEnd: "var(--ds-space-negative-050, -0.25rem)"
|
|
23
19
|
});
|
|
24
20
|
|
|
@@ -34,7 +30,7 @@ var chevronIconStylesWithSpacingFixStyles = (0, _primitives.xcss)({
|
|
|
34
30
|
var PrimaryDropdownButton = exports.PrimaryDropdownButton = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
35
31
|
return (0, _react2.jsx)(_PrimaryButton.PrimaryButton, (0, _extends2.default)({
|
|
36
32
|
iconAfter: (0, _react2.jsx)(_primitives.Bleed, {
|
|
37
|
-
xcss: (0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.icon-button-spacing-fix_o1zc5')
|
|
33
|
+
xcss: [(0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.icon-button-spacing-fix_o1zc5') && chevronIconStylesWithSpacingFixStyles],
|
|
38
34
|
inline: "space.100"
|
|
39
35
|
}, (0, _react2.jsx)(_chevronDown.default, {
|
|
40
36
|
label: ""
|
|
@@ -35,42 +35,41 @@ var isHighlightedStyles = (0, _react.css)({
|
|
|
35
35
|
'&:before': {
|
|
36
36
|
height: 3,
|
|
37
37
|
position: 'absolute',
|
|
38
|
-
bottom: 0,
|
|
39
|
-
left: "var(--ds-space-025, 2px)",
|
|
40
38
|
backgroundColor: "var(".concat(VAR_PRIMARY_BUTTON_BEFORE_HIGHLIGHTED_BACKGROUND_COLOR, ")"),
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
content: '""'
|
|
39
|
+
borderStartEndRadius: "var(--ds-border-radius-050, 1px)",
|
|
40
|
+
borderStartStartRadius: "var(--ds-border-radius-050, 1px)",
|
|
41
|
+
content: '""',
|
|
42
|
+
insetBlockEnd: 0,
|
|
43
|
+
insetInlineStart: "var(--ds-space-025, 2px)"
|
|
44
44
|
}
|
|
45
45
|
});
|
|
46
46
|
var isHighlightedAndDropdownButtonStyles = (0, _react.css)({
|
|
47
47
|
'&:before': {
|
|
48
48
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
49
|
-
|
|
49
|
+
insetInlineEnd: -10
|
|
50
50
|
}
|
|
51
51
|
});
|
|
52
52
|
var isHighlightedNotDropdownButtonStyles = (0, _react.css)({
|
|
53
53
|
'&:before': {
|
|
54
|
-
|
|
54
|
+
insetInlineEnd: "var(--ds-space-025, 2px)"
|
|
55
55
|
}
|
|
56
56
|
});
|
|
57
57
|
var isDropdownButtonStyles = (0, _react.css)({
|
|
58
58
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
59
|
-
|
|
59
|
+
marginInlineEnd: 18,
|
|
60
60
|
'&:after': {
|
|
61
61
|
display: 'inline-block',
|
|
62
62
|
width: 4,
|
|
63
63
|
height: 4,
|
|
64
|
-
marginLeft: "var(--ds-space-050, 4px)",
|
|
65
64
|
position: 'absolute',
|
|
66
|
-
|
|
67
|
-
left: 'calc(100% - 3px)',
|
|
68
|
-
borderBottom: '2px solid',
|
|
65
|
+
borderBlockEnd: '2px solid',
|
|
69
66
|
borderColor: "var(".concat(VAR_PRIMARY_BUTTON_AFTER_DROPDOWN_BORDER_COLOR, ")"),
|
|
67
|
+
borderInlineEnd: '2px solid',
|
|
70
68
|
borderRadius: "var(--ds-border-radius-050, 1px)",
|
|
71
|
-
borderRight: '2px solid',
|
|
72
69
|
content: '""',
|
|
73
|
-
|
|
70
|
+
insetBlockStart: 'calc(50% - 4px)',
|
|
71
|
+
insetInlineStart: 'calc(100% - 3px)',
|
|
72
|
+
marginInlineStart: "var(--ds-space-050, 4px)",
|
|
74
73
|
transform: 'rotate(45deg) scale(1.05)',
|
|
75
74
|
verticalAlign: 'middle'
|
|
76
75
|
}
|
|
@@ -6,11 +6,7 @@ import ChevronIcon from '@atlaskit/icon/glyph/chevron-down';
|
|
|
6
6
|
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
7
7
|
import { Bleed, xcss } from '@atlaskit/primitives';
|
|
8
8
|
import { PrimaryButton } from '../PrimaryButton';
|
|
9
|
-
const chevronIconStyles = xcss({
|
|
10
|
-
opacity: 0.51
|
|
11
|
-
});
|
|
12
9
|
const chevronIconStylesWithSpacingFixStyles = xcss({
|
|
13
|
-
opacity: 0.51,
|
|
14
10
|
marginInlineEnd: `${"var(--ds-space-negative-050, -0.25rem)"}`
|
|
15
11
|
});
|
|
16
12
|
|
|
@@ -26,7 +22,7 @@ const chevronIconStylesWithSpacingFixStyles = xcss({
|
|
|
26
22
|
export const PrimaryDropdownButton = /*#__PURE__*/forwardRef((props, ref) => {
|
|
27
23
|
return jsx(PrimaryButton, _extends({
|
|
28
24
|
iconAfter: jsx(Bleed, {
|
|
29
|
-
xcss: getBooleanFF('platform.design-system-team.icon-button-spacing-fix_o1zc5')
|
|
25
|
+
xcss: [getBooleanFF('platform.design-system-team.icon-button-spacing-fix_o1zc5') && chevronIconStylesWithSpacingFixStyles],
|
|
30
26
|
inline: "space.100"
|
|
31
27
|
}, jsx(ChevronIcon, {
|
|
32
28
|
label: ""
|
|
@@ -26,42 +26,41 @@ const isHighlightedStyles = css({
|
|
|
26
26
|
'&:before': {
|
|
27
27
|
height: 3,
|
|
28
28
|
position: 'absolute',
|
|
29
|
-
bottom: 0,
|
|
30
|
-
left: "var(--ds-space-025, 2px)",
|
|
31
29
|
backgroundColor: `var(${VAR_PRIMARY_BUTTON_BEFORE_HIGHLIGHTED_BACKGROUND_COLOR})`,
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
content: '""'
|
|
30
|
+
borderStartEndRadius: "var(--ds-border-radius-050, 1px)",
|
|
31
|
+
borderStartStartRadius: "var(--ds-border-radius-050, 1px)",
|
|
32
|
+
content: '""',
|
|
33
|
+
insetBlockEnd: 0,
|
|
34
|
+
insetInlineStart: "var(--ds-space-025, 2px)"
|
|
35
35
|
}
|
|
36
36
|
});
|
|
37
37
|
const isHighlightedAndDropdownButtonStyles = css({
|
|
38
38
|
'&:before': {
|
|
39
39
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
40
|
-
|
|
40
|
+
insetInlineEnd: -10
|
|
41
41
|
}
|
|
42
42
|
});
|
|
43
43
|
const isHighlightedNotDropdownButtonStyles = css({
|
|
44
44
|
'&:before': {
|
|
45
|
-
|
|
45
|
+
insetInlineEnd: "var(--ds-space-025, 2px)"
|
|
46
46
|
}
|
|
47
47
|
});
|
|
48
48
|
const isDropdownButtonStyles = css({
|
|
49
49
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
50
|
-
|
|
50
|
+
marginInlineEnd: 18,
|
|
51
51
|
'&:after': {
|
|
52
52
|
display: 'inline-block',
|
|
53
53
|
width: 4,
|
|
54
54
|
height: 4,
|
|
55
|
-
marginLeft: "var(--ds-space-050, 4px)",
|
|
56
55
|
position: 'absolute',
|
|
57
|
-
|
|
58
|
-
left: 'calc(100% - 3px)',
|
|
59
|
-
borderBottom: '2px solid',
|
|
56
|
+
borderBlockEnd: '2px solid',
|
|
60
57
|
borderColor: `var(${VAR_PRIMARY_BUTTON_AFTER_DROPDOWN_BORDER_COLOR})`,
|
|
58
|
+
borderInlineEnd: '2px solid',
|
|
61
59
|
borderRadius: "var(--ds-border-radius-050, 1px)",
|
|
62
|
-
borderRight: '2px solid',
|
|
63
60
|
content: '""',
|
|
64
|
-
|
|
61
|
+
insetBlockStart: 'calc(50% - 4px)',
|
|
62
|
+
insetInlineStart: 'calc(100% - 3px)',
|
|
63
|
+
marginInlineStart: "var(--ds-space-050, 4px)",
|
|
65
64
|
transform: 'rotate(45deg) scale(1.05)',
|
|
66
65
|
verticalAlign: 'middle'
|
|
67
66
|
}
|
|
@@ -6,11 +6,7 @@ import ChevronIcon from '@atlaskit/icon/glyph/chevron-down';
|
|
|
6
6
|
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
7
7
|
import { Bleed, xcss } from '@atlaskit/primitives';
|
|
8
8
|
import { PrimaryButton } from '../PrimaryButton';
|
|
9
|
-
var chevronIconStyles = xcss({
|
|
10
|
-
opacity: 0.51
|
|
11
|
-
});
|
|
12
9
|
var chevronIconStylesWithSpacingFixStyles = xcss({
|
|
13
|
-
opacity: 0.51,
|
|
14
10
|
marginInlineEnd: "var(--ds-space-negative-050, -0.25rem)"
|
|
15
11
|
});
|
|
16
12
|
|
|
@@ -26,7 +22,7 @@ var chevronIconStylesWithSpacingFixStyles = xcss({
|
|
|
26
22
|
export var PrimaryDropdownButton = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
27
23
|
return jsx(PrimaryButton, _extends({
|
|
28
24
|
iconAfter: jsx(Bleed, {
|
|
29
|
-
xcss: getBooleanFF('platform.design-system-team.icon-button-spacing-fix_o1zc5')
|
|
25
|
+
xcss: [getBooleanFF('platform.design-system-team.icon-button-spacing-fix_o1zc5') && chevronIconStylesWithSpacingFixStyles],
|
|
30
26
|
inline: "space.100"
|
|
31
27
|
}, jsx(ChevronIcon, {
|
|
32
28
|
label: ""
|
|
@@ -29,42 +29,41 @@ var isHighlightedStyles = css({
|
|
|
29
29
|
'&:before': {
|
|
30
30
|
height: 3,
|
|
31
31
|
position: 'absolute',
|
|
32
|
-
bottom: 0,
|
|
33
|
-
left: "var(--ds-space-025, 2px)",
|
|
34
32
|
backgroundColor: "var(".concat(VAR_PRIMARY_BUTTON_BEFORE_HIGHLIGHTED_BACKGROUND_COLOR, ")"),
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
content: '""'
|
|
33
|
+
borderStartEndRadius: "var(--ds-border-radius-050, 1px)",
|
|
34
|
+
borderStartStartRadius: "var(--ds-border-radius-050, 1px)",
|
|
35
|
+
content: '""',
|
|
36
|
+
insetBlockEnd: 0,
|
|
37
|
+
insetInlineStart: "var(--ds-space-025, 2px)"
|
|
38
38
|
}
|
|
39
39
|
});
|
|
40
40
|
var isHighlightedAndDropdownButtonStyles = css({
|
|
41
41
|
'&:before': {
|
|
42
42
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
43
|
-
|
|
43
|
+
insetInlineEnd: -10
|
|
44
44
|
}
|
|
45
45
|
});
|
|
46
46
|
var isHighlightedNotDropdownButtonStyles = css({
|
|
47
47
|
'&:before': {
|
|
48
|
-
|
|
48
|
+
insetInlineEnd: "var(--ds-space-025, 2px)"
|
|
49
49
|
}
|
|
50
50
|
});
|
|
51
51
|
var isDropdownButtonStyles = css({
|
|
52
52
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
53
|
-
|
|
53
|
+
marginInlineEnd: 18,
|
|
54
54
|
'&:after': {
|
|
55
55
|
display: 'inline-block',
|
|
56
56
|
width: 4,
|
|
57
57
|
height: 4,
|
|
58
|
-
marginLeft: "var(--ds-space-050, 4px)",
|
|
59
58
|
position: 'absolute',
|
|
60
|
-
|
|
61
|
-
left: 'calc(100% - 3px)',
|
|
62
|
-
borderBottom: '2px solid',
|
|
59
|
+
borderBlockEnd: '2px solid',
|
|
63
60
|
borderColor: "var(".concat(VAR_PRIMARY_BUTTON_AFTER_DROPDOWN_BORDER_COLOR, ")"),
|
|
61
|
+
borderInlineEnd: '2px solid',
|
|
64
62
|
borderRadius: "var(--ds-border-radius-050, 1px)",
|
|
65
|
-
borderRight: '2px solid',
|
|
66
63
|
content: '""',
|
|
67
|
-
|
|
64
|
+
insetBlockStart: 'calc(50% - 4px)',
|
|
65
|
+
insetInlineStart: 'calc(100% - 3px)',
|
|
66
|
+
marginInlineStart: "var(--ds-space-050, 4px)",
|
|
68
67
|
transform: 'rotate(45deg) scale(1.05)',
|
|
69
68
|
verticalAlign: 'middle'
|
|
70
69
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/atlassian-navigation",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.2",
|
|
4
4
|
"description": "A horizontal navigation component for Atlassian products.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@atlaskit/analytics-namespaced-context": "^6.7.0",
|
|
36
|
-
"@atlaskit/button": "^17.
|
|
36
|
+
"@atlaskit/button": "^17.1.0",
|
|
37
37
|
"@atlaskit/ds-lib": "^2.2.0",
|
|
38
38
|
"@atlaskit/icon": "^22.0.0",
|
|
39
39
|
"@atlaskit/logo": "*",
|