@atlaskit/menu 2.1.1 → 2.1.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
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @atlaskit/menu
|
|
2
2
|
|
|
3
|
+
## 2.1.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#42474](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42474) [`d7400cb1aa2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d7400cb1aa2) - Adds a platform feature flag to adjust Menu Section seperator border widths from 2px to 1px.
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
|
|
3
10
|
## 2.1.1
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -70,9 +70,12 @@ var scrollableStyles = (0, _react2.css)({
|
|
|
70
70
|
var unscrollableStyles = (0, _react2.css)({
|
|
71
71
|
flexShrink: 0
|
|
72
72
|
});
|
|
73
|
-
var
|
|
73
|
+
var thickSeparatorStyles = (0, _react2.css)({
|
|
74
74
|
borderBlockStart: "2px solid var(".concat(VAR_SEPARATOR_COLOR, ", ", "var(--ds-border, ".concat(_colors.N30A, ")"), ")")
|
|
75
75
|
});
|
|
76
|
+
var thinSeparatorStyles = (0, _react2.css)({
|
|
77
|
+
borderBlockStart: "1px solid var(".concat(VAR_SEPARATOR_COLOR, ", ", "var(--ds-border, ".concat(_colors.N30A, ")"), ")")
|
|
78
|
+
});
|
|
76
79
|
var noSeparatorStyles = (0, _react2.css)({
|
|
77
80
|
// this is to ensure that adjacent sections without separators don't get additional margins.
|
|
78
81
|
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
@@ -133,7 +136,7 @@ var Section = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
133
136
|
// NOTE: Firefox allows elements that have "overflow: auto" to gain focus (as if it had tab-index="0")
|
|
134
137
|
// We have made a deliberate choice to leave this behaviour as is.
|
|
135
138
|
,
|
|
136
|
-
css: [sectionStyles, isScrollable ? scrollableStyles : unscrollableStyles, hasSeparator ?
|
|
139
|
+
css: [sectionStyles, isScrollable ? scrollableStyles : unscrollableStyles, hasSeparator ? (0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.section-1px-seperator-borders') ? thinSeparatorStyles : thickSeparatorStyles : noSeparatorStyles],
|
|
137
140
|
"aria-label": title,
|
|
138
141
|
"data-testid": testId,
|
|
139
142
|
role: "group",
|
|
@@ -61,9 +61,12 @@ const scrollableStyles = css({
|
|
|
61
61
|
const unscrollableStyles = css({
|
|
62
62
|
flexShrink: 0
|
|
63
63
|
});
|
|
64
|
-
const
|
|
64
|
+
const thickSeparatorStyles = css({
|
|
65
65
|
borderBlockStart: `2px solid var(${VAR_SEPARATOR_COLOR}, ${`var(--ds-border, ${N30A})`})`
|
|
66
66
|
});
|
|
67
|
+
const thinSeparatorStyles = css({
|
|
68
|
+
borderBlockStart: `1px solid var(${VAR_SEPARATOR_COLOR}, ${`var(--ds-border, ${N30A})`})`
|
|
69
|
+
});
|
|
67
70
|
const noSeparatorStyles = css({
|
|
68
71
|
// this is to ensure that adjacent sections without separators don't get additional margins.
|
|
69
72
|
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
@@ -126,7 +129,7 @@ const Section = /*#__PURE__*/forwardRef(({
|
|
|
126
129
|
// NOTE: Firefox allows elements that have "overflow: auto" to gain focus (as if it had tab-index="0")
|
|
127
130
|
// We have made a deliberate choice to leave this behaviour as is.
|
|
128
131
|
,
|
|
129
|
-
css: [sectionStyles, isScrollable ? scrollableStyles : unscrollableStyles, hasSeparator ?
|
|
132
|
+
css: [sectionStyles, isScrollable ? scrollableStyles : unscrollableStyles, hasSeparator ? getBooleanFF('platform.design-system-team.section-1px-seperator-borders') ? thinSeparatorStyles : thickSeparatorStyles : noSeparatorStyles],
|
|
130
133
|
"aria-label": title,
|
|
131
134
|
"data-testid": testId,
|
|
132
135
|
role: "group",
|
|
@@ -63,9 +63,12 @@ var scrollableStyles = css({
|
|
|
63
63
|
var unscrollableStyles = css({
|
|
64
64
|
flexShrink: 0
|
|
65
65
|
});
|
|
66
|
-
var
|
|
66
|
+
var thickSeparatorStyles = css({
|
|
67
67
|
borderBlockStart: "2px solid var(".concat(VAR_SEPARATOR_COLOR, ", ", "var(--ds-border, ".concat(N30A, ")"), ")")
|
|
68
68
|
});
|
|
69
|
+
var thinSeparatorStyles = css({
|
|
70
|
+
borderBlockStart: "1px solid var(".concat(VAR_SEPARATOR_COLOR, ", ", "var(--ds-border, ".concat(N30A, ")"), ")")
|
|
71
|
+
});
|
|
69
72
|
var noSeparatorStyles = css({
|
|
70
73
|
// this is to ensure that adjacent sections without separators don't get additional margins.
|
|
71
74
|
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
@@ -126,7 +129,7 @@ var Section = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
126
129
|
// NOTE: Firefox allows elements that have "overflow: auto" to gain focus (as if it had tab-index="0")
|
|
127
130
|
// We have made a deliberate choice to leave this behaviour as is.
|
|
128
131
|
,
|
|
129
|
-
css: [sectionStyles, isScrollable ? scrollableStyles : unscrollableStyles, hasSeparator ?
|
|
132
|
+
css: [sectionStyles, isScrollable ? scrollableStyles : unscrollableStyles, hasSeparator ? getBooleanFF('platform.design-system-team.section-1px-seperator-borders') ? thinSeparatorStyles : thickSeparatorStyles : noSeparatorStyles],
|
|
130
133
|
"aria-label": title,
|
|
131
134
|
"data-testid": testId,
|
|
132
135
|
role: "group",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/menu",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.2",
|
|
4
4
|
"description": "A collection of composable menu components that can be used anywhere.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"@atlaskit/ds-lib": "^2.2.0",
|
|
30
30
|
"@atlaskit/focus-ring": "^1.3.0",
|
|
31
31
|
"@atlaskit/platform-feature-flags": "^0.2.0",
|
|
32
|
-
"@atlaskit/primitives": "^1.
|
|
32
|
+
"@atlaskit/primitives": "^1.9.0",
|
|
33
33
|
"@atlaskit/theme": "^12.6.0",
|
|
34
34
|
"@atlaskit/tokens": "^1.28.0",
|
|
35
35
|
"@babel/runtime": "^7.0.0",
|
|
@@ -41,6 +41,7 @@
|
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@af/accessibility-testing": "*",
|
|
44
|
+
"@af/integration-testing": "*",
|
|
44
45
|
"@af/visual-regression": "*",
|
|
45
46
|
"@atlaskit/visual-regression": "*",
|
|
46
47
|
"@atlaskit/webdriver-runner": "*",
|
|
@@ -106,8 +107,11 @@
|
|
|
106
107
|
"platform-feature-flags": {
|
|
107
108
|
"platform.design-system-team.unsafe-overrides-killswitch_c8j9m": {
|
|
108
109
|
"type": "boolean"
|
|
110
|
+
},
|
|
111
|
+
"platform.design-system-team.section-1px-seperator-borders": {
|
|
112
|
+
"type": "boolean"
|
|
109
113
|
}
|
|
110
114
|
},
|
|
111
115
|
"homepage": "https://atlassian.design/components/menu/",
|
|
112
116
|
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1"
|
|
113
|
-
}
|
|
117
|
+
}
|