@spaced-out/ui-design-system 0.0.60 → 0.0.62
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 +14 -0
- package/lib/components/AvatarGroup/AvatarGroup.module.css +1 -0
- package/lib/components/Card/Card.js +18 -2
- package/lib/components/Card/Card.js.flow +30 -7
- package/lib/components/Card/Card.module.css +3 -0
- package/lib/components/ErrorMessage/ErrorImages/ForbiddenImage.js +77 -0
- package/lib/components/ErrorMessage/ErrorImages/ForbiddenImage.js.flow +89 -0
- package/lib/components/ErrorMessage/ErrorImages/NotFoundImage.js +105 -0
- package/lib/components/ErrorMessage/ErrorImages/NotFoundImage.js.flow +121 -0
- package/lib/components/ErrorMessage/ErrorImages/ServerErrorImage.js +202 -0
- package/lib/components/ErrorMessage/ErrorImages/ServerErrorImage.js.flow +241 -0
- package/lib/components/ErrorMessage/ErrorImages/UnauthorizedImage.js +66 -0
- package/lib/components/ErrorMessage/ErrorImages/UnauthorizedImage.js.flow +77 -0
- package/lib/components/ErrorMessage/ErrorImages/index.js +49 -0
- package/lib/components/ErrorMessage/ErrorImages/index.js.flow +6 -0
- package/lib/components/ErrorMessage/ErrorMessage.js +45 -0
- package/lib/components/ErrorMessage/ErrorMessage.js.flow +86 -0
- package/lib/components/ErrorMessage/ErrorMessage.module.css +35 -0
- package/lib/components/ErrorMessage/index.js +16 -0
- package/lib/components/ErrorMessage/index.js.flow +3 -0
- package/lib/components/SubMenu/SubMenu.js +16 -2
- package/lib/components/SubMenu/SubMenu.js.flow +15 -0
- package/lib/components/SubMenu/SubMenu.module.css +35 -4
- package/package.json +1 -1
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _ForbiddenImage = require("./ForbiddenImage");
|
|
7
|
+
Object.keys(_ForbiddenImage).forEach(function (key) {
|
|
8
|
+
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _ForbiddenImage[key]) return;
|
|
10
|
+
Object.defineProperty(exports, key, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () {
|
|
13
|
+
return _ForbiddenImage[key];
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
var _NotFoundImage = require("./NotFoundImage");
|
|
18
|
+
Object.keys(_NotFoundImage).forEach(function (key) {
|
|
19
|
+
if (key === "default" || key === "__esModule") return;
|
|
20
|
+
if (key in exports && exports[key] === _NotFoundImage[key]) return;
|
|
21
|
+
Object.defineProperty(exports, key, {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function () {
|
|
24
|
+
return _NotFoundImage[key];
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
var _ServerErrorImage = require("./ServerErrorImage");
|
|
29
|
+
Object.keys(_ServerErrorImage).forEach(function (key) {
|
|
30
|
+
if (key === "default" || key === "__esModule") return;
|
|
31
|
+
if (key in exports && exports[key] === _ServerErrorImage[key]) return;
|
|
32
|
+
Object.defineProperty(exports, key, {
|
|
33
|
+
enumerable: true,
|
|
34
|
+
get: function () {
|
|
35
|
+
return _ServerErrorImage[key];
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
var _UnauthorizedImage = require("./UnauthorizedImage");
|
|
40
|
+
Object.keys(_UnauthorizedImage).forEach(function (key) {
|
|
41
|
+
if (key === "default" || key === "__esModule") return;
|
|
42
|
+
if (key in exports && exports[key] === _UnauthorizedImage[key]) return;
|
|
43
|
+
Object.defineProperty(exports, key, {
|
|
44
|
+
enumerable: true,
|
|
45
|
+
get: function () {
|
|
46
|
+
return _UnauthorizedImage[key];
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
});
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.ErrorMessage = void 0;
|
|
7
|
+
var React = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _classify = _interopRequireDefault(require("../../utils/classify"));
|
|
9
|
+
var _ErrorImages = require("./ErrorImages");
|
|
10
|
+
var _ErrorMessageModule = _interopRequireDefault(require("./ErrorMessage.module.css"));
|
|
11
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
13
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
14
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
15
|
+
const ErrorMessage = _ref => {
|
|
16
|
+
let {
|
|
17
|
+
classNames,
|
|
18
|
+
children,
|
|
19
|
+
imageVariant,
|
|
20
|
+
title,
|
|
21
|
+
description,
|
|
22
|
+
customImageUrl,
|
|
23
|
+
heading,
|
|
24
|
+
...props
|
|
25
|
+
} = _ref;
|
|
26
|
+
return /*#__PURE__*/React.createElement("div", _extends({}, props, {
|
|
27
|
+
"data-testid": "ErrorMessage",
|
|
28
|
+
className: (0, _classify.default)(_ErrorMessageModule.default.wrapper, classNames?.wrapper)
|
|
29
|
+
}), !!imageVariant && !customImageUrl && /*#__PURE__*/React.createElement("div", {
|
|
30
|
+
className: (0, _classify.default)(_ErrorMessageModule.default.image, classNames?.image)
|
|
31
|
+
}, imageVariant === 'unauthorized' && /*#__PURE__*/React.createElement(_ErrorImages.UnauthorizedImage, null), imageVariant === 'forbidden' && /*#__PURE__*/React.createElement(_ErrorImages.ForbiddenImage, null), imageVariant === 'notFound' && /*#__PURE__*/React.createElement(_ErrorImages.NotFoundImage, null), imageVariant === 'serverError' && /*#__PURE__*/React.createElement(_ErrorImages.ServerErrorImage, null)), customImageUrl && /*#__PURE__*/React.createElement("img", {
|
|
32
|
+
className: (0, _classify.default)(_ErrorMessageModule.default.image, classNames?.image),
|
|
33
|
+
src: customImageUrl,
|
|
34
|
+
alt: "Empty State"
|
|
35
|
+
}), !!heading && /*#__PURE__*/React.createElement("div", {
|
|
36
|
+
className: (0, _classify.default)(_ErrorMessageModule.default.heading, classNames?.heading)
|
|
37
|
+
}, heading), !!title && /*#__PURE__*/React.createElement("div", {
|
|
38
|
+
className: (0, _classify.default)(_ErrorMessageModule.default.title, classNames?.title)
|
|
39
|
+
}, title), !!description && /*#__PURE__*/React.createElement("div", {
|
|
40
|
+
className: (0, _classify.default)(_ErrorMessageModule.default.description, classNames?.description)
|
|
41
|
+
}, description), !!children && /*#__PURE__*/React.createElement("div", {
|
|
42
|
+
className: (0, _classify.default)(_ErrorMessageModule.default.childrenWrapper, classNames?.children)
|
|
43
|
+
}, children));
|
|
44
|
+
};
|
|
45
|
+
exports.ErrorMessage = ErrorMessage;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
// @flow strict
|
|
2
|
+
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
|
|
5
|
+
import classify from '../../utils/classify';
|
|
6
|
+
|
|
7
|
+
import {
|
|
8
|
+
ForbiddenImage,
|
|
9
|
+
NotFoundImage,
|
|
10
|
+
ServerErrorImage,
|
|
11
|
+
UnauthorizedImage,
|
|
12
|
+
} from './ErrorImages';
|
|
13
|
+
|
|
14
|
+
import css from './ErrorMessage.module.css';
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
type ClassNames = $ReadOnly<{
|
|
18
|
+
wrapper?: string,
|
|
19
|
+
image?: string,
|
|
20
|
+
heading?: string,
|
|
21
|
+
title?: string,
|
|
22
|
+
description?: string,
|
|
23
|
+
children?: string,
|
|
24
|
+
}>;
|
|
25
|
+
|
|
26
|
+
export type ErrorMessageProps = {
|
|
27
|
+
classNames?: ClassNames,
|
|
28
|
+
children?: React.Node,
|
|
29
|
+
imageVariant?: 'unauthorized' | 'forbidden' | 'notFound' | 'serverError',
|
|
30
|
+
title?: React.Node,
|
|
31
|
+
description?: React.Node,
|
|
32
|
+
heading?: React.Node,
|
|
33
|
+
customImageUrl?: string,
|
|
34
|
+
...
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
export const ErrorMessage = ({
|
|
38
|
+
classNames,
|
|
39
|
+
children,
|
|
40
|
+
imageVariant,
|
|
41
|
+
title,
|
|
42
|
+
description,
|
|
43
|
+
customImageUrl,
|
|
44
|
+
heading,
|
|
45
|
+
...props
|
|
46
|
+
}: ErrorMessageProps): React.Node => (
|
|
47
|
+
<div
|
|
48
|
+
{...props}
|
|
49
|
+
data-testid="ErrorMessage"
|
|
50
|
+
className={classify(css.wrapper, classNames?.wrapper)}
|
|
51
|
+
>
|
|
52
|
+
{!!imageVariant && !customImageUrl && (
|
|
53
|
+
<div className={classify(css.image, classNames?.image)}>
|
|
54
|
+
{imageVariant === 'unauthorized' && <UnauthorizedImage />}
|
|
55
|
+
{imageVariant === 'forbidden' && <ForbiddenImage />}
|
|
56
|
+
{imageVariant === 'notFound' && <NotFoundImage />}
|
|
57
|
+
{imageVariant === 'serverError' && <ServerErrorImage />}
|
|
58
|
+
</div>
|
|
59
|
+
)}
|
|
60
|
+
{customImageUrl && (
|
|
61
|
+
<img
|
|
62
|
+
className={classify(css.image, classNames?.image)}
|
|
63
|
+
src={customImageUrl}
|
|
64
|
+
alt="Empty State"
|
|
65
|
+
/>
|
|
66
|
+
)}
|
|
67
|
+
{!!heading && (
|
|
68
|
+
<div className={classify(css.heading, classNames?.heading)}>
|
|
69
|
+
{heading}
|
|
70
|
+
</div>
|
|
71
|
+
)}
|
|
72
|
+
{!!title && (
|
|
73
|
+
<div className={classify(css.title, classNames?.title)}>{title}</div>
|
|
74
|
+
)}
|
|
75
|
+
{!!description && (
|
|
76
|
+
<div className={classify(css.description, classNames?.description)}>
|
|
77
|
+
{description}
|
|
78
|
+
</div>
|
|
79
|
+
)}
|
|
80
|
+
{!!children && (
|
|
81
|
+
<div className={classify(css.childrenWrapper, classNames?.children)}>
|
|
82
|
+
{children}
|
|
83
|
+
</div>
|
|
84
|
+
)}
|
|
85
|
+
</div>
|
|
86
|
+
);
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
@value (colorTextSecondary, colorTextClickable) from '../../styles/variables/_color.css';
|
|
2
|
+
@value (spaceMedium, spaceXSmall, spaceSmall) from '../../styles/variables/_space.css';
|
|
3
|
+
@value (sizeFluid, size140) from '../../styles/variables/_size.css';
|
|
4
|
+
|
|
5
|
+
.wrapper {
|
|
6
|
+
display: flex;
|
|
7
|
+
width: sizeFluid;
|
|
8
|
+
height: sizeFluid;
|
|
9
|
+
flex-flow: column;
|
|
10
|
+
align-items: center;
|
|
11
|
+
justify-content: center;
|
|
12
|
+
text-align: center;
|
|
13
|
+
padding: spaceMedium;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.image {
|
|
17
|
+
max-width: size140;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.heading {
|
|
21
|
+
composes: jumboMedium from '../../styles/typography.module.css';
|
|
22
|
+
margin-bottom: spaceSmall;
|
|
23
|
+
color: colorTextClickable;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.title {
|
|
27
|
+
composes: subTitleMedium from '../../styles/typography.module.css';
|
|
28
|
+
margin-bottom: spaceXSmall;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.description {
|
|
32
|
+
composes: bodyMedium from '../../styles/typography.module.css';
|
|
33
|
+
color: colorTextSecondary;
|
|
34
|
+
margin-bottom: spaceMedium;
|
|
35
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _ErrorMessage = require("./ErrorMessage");
|
|
7
|
+
Object.keys(_ErrorMessage).forEach(function (key) {
|
|
8
|
+
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _ErrorMessage[key]) return;
|
|
10
|
+
Object.defineProperty(exports, key, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () {
|
|
13
|
+
return _ErrorMessage[key];
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
});
|
|
@@ -66,6 +66,11 @@ const SubMenuItem = /*#__PURE__*/React.forwardRef((_ref4, ref) => {
|
|
|
66
66
|
onChange && onChange(menuKey);
|
|
67
67
|
}
|
|
68
68
|
};
|
|
69
|
+
const onKeyDownHandler = e => {
|
|
70
|
+
if (e.key === 'Enter') {
|
|
71
|
+
onChangeHandler();
|
|
72
|
+
}
|
|
73
|
+
};
|
|
69
74
|
const selected = selectedMenuKey === menuKey;
|
|
70
75
|
const getNamedComp = comp => {
|
|
71
76
|
const childrenArray = React.Children.toArray(children);
|
|
@@ -88,8 +93,10 @@ const SubMenuItem = /*#__PURE__*/React.forwardRef((_ref4, ref) => {
|
|
|
88
93
|
[_SubMenuModule.default.selected]: selected,
|
|
89
94
|
[_SubMenuModule.default.disabled]: disabled
|
|
90
95
|
}, classNames?.wrapper),
|
|
96
|
+
onKeyDown: onKeyDownHandler,
|
|
91
97
|
onClick: onChangeHandler,
|
|
92
|
-
ref: ref
|
|
98
|
+
ref: ref,
|
|
99
|
+
tabIndex: disabled ? '-1' : 0
|
|
93
100
|
}), /*#__PURE__*/React.createElement("div", {
|
|
94
101
|
className: _SubMenuModule.default.menuIconName
|
|
95
102
|
}, getNamedComp('SubMenuItemIcon'), getNamedComp('SubMenuItemText')), getNamedComp('SubMenuItemAction'));
|
|
@@ -114,6 +121,11 @@ const SubMenuGroup = _ref5 => {
|
|
|
114
121
|
onChange(value);
|
|
115
122
|
}
|
|
116
123
|
};
|
|
124
|
+
const onKeyDownHandlerHeader = e => {
|
|
125
|
+
if (e.key === 'Enter') {
|
|
126
|
+
collapseHandler();
|
|
127
|
+
}
|
|
128
|
+
};
|
|
117
129
|
const childrenWithProps = React.Children.map(children, child => {
|
|
118
130
|
if ( /*#__PURE__*/React.isValidElement(child)) {
|
|
119
131
|
const {
|
|
@@ -131,7 +143,9 @@ const SubMenuGroup = _ref5 => {
|
|
|
131
143
|
className: (0, _classify.default)(_SubMenuModule.default.subMenuGroupWrapper, classNames?.wrapper)
|
|
132
144
|
}, /*#__PURE__*/React.createElement("div", {
|
|
133
145
|
className: (0, _classify.default)(_SubMenuModule.default.subMenuGroupHeader, classNames?.groupHeader),
|
|
134
|
-
onClick: collapseHandler
|
|
146
|
+
onClick: collapseHandler,
|
|
147
|
+
onKeyDown: onKeyDownHandlerHeader,
|
|
148
|
+
tabindex: "0"
|
|
135
149
|
}, /*#__PURE__*/React.createElement(_Text.SubTitleExtraSmall, {
|
|
136
150
|
color: _Text.TEXT_COLORS.inverseSecondary,
|
|
137
151
|
className: _SubMenuModule.default.groupTitle
|
|
@@ -97,6 +97,12 @@ export const SubMenuItem: React$AbstractComponent<
|
|
|
97
97
|
}
|
|
98
98
|
};
|
|
99
99
|
|
|
100
|
+
const onKeyDownHandler = (e) => {
|
|
101
|
+
if (e.key === 'Enter') {
|
|
102
|
+
onChangeHandler();
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
|
|
100
106
|
const selected = selectedMenuKey === menuKey;
|
|
101
107
|
|
|
102
108
|
const getNamedComp = (comp: string) => {
|
|
@@ -129,8 +135,10 @@ export const SubMenuItem: React$AbstractComponent<
|
|
|
129
135
|
},
|
|
130
136
|
classNames?.wrapper,
|
|
131
137
|
)}
|
|
138
|
+
onKeyDown={onKeyDownHandler}
|
|
132
139
|
onClick={onChangeHandler}
|
|
133
140
|
ref={ref}
|
|
141
|
+
tabIndex={disabled ? '-1' : 0}
|
|
134
142
|
>
|
|
135
143
|
<div className={css.menuIconName}>
|
|
136
144
|
{getNamedComp('SubMenuItemIcon')}
|
|
@@ -176,6 +184,11 @@ export const SubMenuGroup = ({
|
|
|
176
184
|
onChange(value);
|
|
177
185
|
}
|
|
178
186
|
};
|
|
187
|
+
const onKeyDownHandlerHeader = (e) => {
|
|
188
|
+
if (e.key === 'Enter') {
|
|
189
|
+
collapseHandler();
|
|
190
|
+
}
|
|
191
|
+
};
|
|
179
192
|
const childrenWithProps = React.Children.map(children, (child) => {
|
|
180
193
|
if (React.isValidElement(child)) {
|
|
181
194
|
const {disabled: disabledChild} = child.props;
|
|
@@ -192,6 +205,8 @@ export const SubMenuGroup = ({
|
|
|
192
205
|
<div
|
|
193
206
|
className={classify(css.subMenuGroupHeader, classNames?.groupHeader)}
|
|
194
207
|
onClick={collapseHandler}
|
|
208
|
+
onKeyDown={onKeyDownHandlerHeader}
|
|
209
|
+
tabindex="0"
|
|
195
210
|
>
|
|
196
211
|
<SubTitleExtraSmall
|
|
197
212
|
color={TEXT_COLORS.inverseSecondary}
|
|
@@ -1,14 +1,19 @@
|
|
|
1
1
|
@value ( size34, size60, sizeFluid, sizeFullViewportHeight) from '../../styles/variables/_size.css';
|
|
2
2
|
|
|
3
3
|
@value (
|
|
4
|
+
colorFillNone,
|
|
5
|
+
colorFillPrimary,
|
|
6
|
+
colorFocusPrimary,
|
|
4
7
|
colorNeutralDarkest,
|
|
5
8
|
colorTextInverseSecondary,
|
|
6
9
|
colorTextInversePrimary,
|
|
7
|
-
colorSubMenuBackgroundDefault
|
|
10
|
+
colorSubMenuBackgroundDefault,
|
|
11
|
+
colorSuccess,
|
|
12
|
+
colorFocusDanger
|
|
8
13
|
) from '../../styles/variables/_color.css';
|
|
9
14
|
@value ( spaceNone, spaceXSmall, spaceSmall, spaceMedium ) from '../../styles/variables/_space.css';
|
|
10
15
|
|
|
11
|
-
@value ( borderRadiusSmall, borderWidthPrimary) from '../../styles/variables/_border.css';
|
|
16
|
+
@value ( borderWidthTertiary, borderRadiusSmall, borderWidthPrimary, borderRadiusMedium, borderWidthNone) from '../../styles/variables/_border.css';
|
|
12
17
|
|
|
13
18
|
.subMenuWrapper {
|
|
14
19
|
background: colorSubMenuBackgroundDefault;
|
|
@@ -50,7 +55,21 @@
|
|
|
50
55
|
flex-direction: row;
|
|
51
56
|
justify-content: space-between;
|
|
52
57
|
cursor: pointer;
|
|
53
|
-
padding:
|
|
58
|
+
padding: spaceXSmall;
|
|
59
|
+
border-radius: borderRadiusSmall;
|
|
60
|
+
border: borderWidthTertiary solid colorFillNone;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.subMenuGroupHeader:focus-within {
|
|
64
|
+
border: borderWidthTertiary solid colorFocusPrimary;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.subMenuGroupHeader:focus-visible {
|
|
68
|
+
outline: none;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.subMenuGroupHeader:focus {
|
|
72
|
+
border: borderWidthTertiary solid colorFocusPrimary;
|
|
54
73
|
}
|
|
55
74
|
|
|
56
75
|
.groupTitle {
|
|
@@ -60,7 +79,8 @@
|
|
|
60
79
|
.subMenuGroup {
|
|
61
80
|
display: flex;
|
|
62
81
|
flex-direction: column;
|
|
63
|
-
margin-top:
|
|
82
|
+
margin-top: spaceMedium;
|
|
83
|
+
gap: spaceMedium;
|
|
64
84
|
}
|
|
65
85
|
|
|
66
86
|
.subMenuGroup.collapsed {
|
|
@@ -83,12 +103,23 @@
|
|
|
83
103
|
width: sizeFluid;
|
|
84
104
|
cursor: pointer;
|
|
85
105
|
padding: spaceXSmall;
|
|
106
|
+
box-sizing: border-box;
|
|
107
|
+
border: borderWidthTertiary solid colorFillNone;
|
|
86
108
|
}
|
|
87
109
|
|
|
88
110
|
.menuItem:not(.selected):hover {
|
|
89
111
|
color: colorTextInversePrimary;
|
|
90
112
|
}
|
|
91
113
|
|
|
114
|
+
.menuItem:focus-visible {
|
|
115
|
+
outline: none;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.menuItem:focus {
|
|
119
|
+
background: colorNeutralDarkest;
|
|
120
|
+
border: borderWidthTertiary solid colorFocusPrimary;
|
|
121
|
+
}
|
|
122
|
+
|
|
92
123
|
.menuIcon {
|
|
93
124
|
color: inherit;
|
|
94
125
|
}
|