baseui 0.0.0-next-17879f0 → 0.0.0-next-e57c3c1
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/a11y/a11y.js +2 -2
- package/a11y/a11y.js.flow +2 -2
- package/accordion/styled-components.js +3 -3
- package/accordion/styled-components.js.flow +3 -3
- package/app-nav-bar/styled-components.js +5 -5
- package/app-nav-bar/styled-components.js.flow +5 -5
- package/avatar/styled-components.js +2 -2
- package/avatar/styled-components.js.flow +2 -2
- package/badge/styled-components.js +1 -1
- package/badge/styled-components.js.flow +1 -1
- package/button/styled-components.js +1 -1
- package/button/styled-components.js.flow +1 -1
- package/checkbox/styled-components.js +3 -3
- package/checkbox/styled-components.js.flow +2 -2
- package/data-table/column-numerical.js +2 -2
- package/data-table/column-numerical.js.flow +2 -2
- package/data-table/filter-menu.js +1 -1
- package/data-table/filter-menu.js.flow +1 -1
- package/data-table/header-cell.js +1 -1
- package/data-table/header-cell.js.flow +1 -1
- package/datepicker/styled-components.js +5 -5
- package/datepicker/styled-components.js.flow +5 -5
- package/dnd-list/styled-components.js +10 -10
- package/dnd-list/styled-components.js.flow +10 -10
- package/drawer/styled-components.js +5 -3
- package/drawer/styled-components.js.flow +4 -3
- package/es/a11y/a11y.js +2 -2
- package/es/accordion/styled-components.js +3 -3
- package/es/app-nav-bar/styled-components.js +5 -5
- package/es/avatar/styled-components.js +2 -2
- package/es/badge/styled-components.js +1 -1
- package/es/button/styled-components.js +1 -1
- package/es/checkbox/styled-components.js +3 -3
- package/es/data-table/column-numerical.js +2 -2
- package/es/data-table/filter-menu.js +1 -1
- package/es/data-table/header-cell.js +1 -1
- package/es/datepicker/styled-components.js +5 -5
- package/es/dnd-list/styled-components.js +10 -10
- package/es/drawer/styled-components.js +4 -3
- package/es/file-uploader/styled-components.js +1 -1
- package/es/form-control/styled-components.js +4 -4
- package/es/input/styled-components.js +2 -2
- package/es/link/styled-components.js +1 -1
- package/es/map-marker/styled-components.js +3 -3
- package/es/menu/styled-components.js +1 -1
- package/es/modal/styled-components.js +1 -1
- package/es/pagination/pagination.js +1 -1
- package/es/pagination/styled-components.js +1 -1
- package/es/progress-bar/styled-components.js +4 -4
- package/es/progress-steps/styled-components.js +10 -10
- package/es/radio/styled-components.js +1 -1
- package/es/rating/styled-components.js +5 -5
- package/es/side-navigation/styled-components.js +6 -6
- package/es/slider/styled-components.js +2 -2
- package/es/table/styled-components.js +3 -3
- package/es/table-grid/styled-components.js +2 -2
- package/es/table-semantic/styled-components.js +1 -1
- package/es/tabs/styled-components.js +4 -4
- package/es/tabs-motion/styled-components.js +1 -1
- package/es/tag/styled-components.js +1 -1
- package/es/toast/styled-components.js +2 -2
- package/es/tree-view/styled-components.js +3 -3
- package/esm/a11y/a11y.js +2 -2
- package/esm/accordion/styled-components.js +3 -3
- package/esm/app-nav-bar/styled-components.js +5 -5
- package/esm/avatar/styled-components.js +2 -2
- package/esm/badge/styled-components.js +1 -1
- package/esm/button/styled-components.js +1 -1
- package/esm/checkbox/styled-components.js +3 -3
- package/esm/data-table/column-numerical.js +2 -2
- package/esm/data-table/filter-menu.js +1 -1
- package/esm/data-table/header-cell.js +1 -1
- package/esm/datepicker/styled-components.js +5 -5
- package/esm/dnd-list/styled-components.js +10 -10
- package/esm/drawer/styled-components.js +4 -3
- package/esm/file-uploader/styled-components.js +1 -1
- package/esm/form-control/styled-components.js +4 -4
- package/esm/input/styled-components.js +2 -2
- package/esm/link/styled-components.js +1 -1
- package/esm/map-marker/styled-components.js +3 -3
- package/esm/menu/styled-components.js +1 -1
- package/esm/modal/styled-components.js +1 -1
- package/esm/pagination/pagination.js +1 -1
- package/esm/pagination/styled-components.js +1 -1
- package/esm/progress-bar/styled-components.js +4 -4
- package/esm/progress-steps/styled-components.js +10 -10
- package/esm/radio/styled-components.js +1 -1
- package/esm/rating/styled-components.js +5 -5
- package/esm/side-navigation/styled-components.js +6 -6
- package/esm/slider/styled-components.js +2 -2
- package/esm/table/styled-components.js +3 -3
- package/esm/table-grid/styled-components.js +2 -2
- package/esm/table-semantic/styled-components.js +1 -1
- package/esm/tabs/styled-components.js +4 -4
- package/esm/tabs-motion/styled-components.js +1 -1
- package/esm/tag/styled-components.js +1 -1
- package/esm/toast/styled-components.js +2 -2
- package/esm/tree-view/styled-components.js +3 -3
- package/file-uploader/styled-components.js +1 -1
- package/file-uploader/styled-components.js.flow +1 -1
- package/form-control/styled-components.js +4 -4
- package/form-control/styled-components.js.flow +5 -5
- package/input/styled-components.js +2 -2
- package/input/styled-components.js.flow +2 -2
- package/link/styled-components.js +1 -1
- package/link/styled-components.js.flow +1 -1
- package/map-marker/styled-components.js +3 -3
- package/map-marker/styled-components.js.flow +2 -2
- package/menu/styled-components.js +1 -1
- package/menu/styled-components.js.flow +1 -1
- package/modal/styled-components.js +1 -1
- package/modal/styled-components.js.flow +1 -1
- package/package.json +1 -1
- package/pagination/pagination.js +1 -1
- package/pagination/pagination.js.flow +1 -1
- package/pagination/styled-components.js +1 -1
- package/pagination/styled-components.js.flow +1 -1
- package/progress-bar/styled-components.js +3 -3
- package/progress-bar/styled-components.js.flow +4 -4
- package/progress-steps/styled-components.js +10 -10
- package/progress-steps/styled-components.js.flow +35 -38
- package/radio/styled-components.js +1 -1
- package/radio/styled-components.js.flow +1 -1
- package/rating/styled-components.js +5 -5
- package/rating/styled-components.js.flow +5 -5
- package/side-navigation/styled-components.js +6 -6
- package/side-navigation/styled-components.js.flow +6 -6
- package/slider/styled-components.js +2 -2
- package/slider/styled-components.js.flow +6 -6
- package/table/styled-components.js +3 -3
- package/table/styled-components.js.flow +3 -3
- package/table-grid/styled-components.js +2 -2
- package/table-grid/styled-components.js.flow +2 -2
- package/table-semantic/styled-components.js +1 -1
- package/table-semantic/styled-components.js.flow +1 -1
- package/tabs/styled-components.js +4 -4
- package/tabs/styled-components.js.flow +4 -4
- package/tabs-motion/styled-components.js +1 -1
- package/tabs-motion/styled-components.js.flow +1 -1
- package/tag/styled-components.js +1 -1
- package/tag/styled-components.js.flow +3 -1
- package/toast/styled-components.js +2 -2
- package/toast/styled-components.js.flow +2 -2
- package/tree-view/styled-components.js +3 -3
- package/tree-view/styled-components.js.flow +3 -3
package/a11y/a11y.js
CHANGED
|
@@ -71,7 +71,7 @@ var ViolationContainer = (0, _styles.styled)('div', function (_ref) {
|
|
|
71
71
|
$top = _ref.$top,
|
|
72
72
|
$left = _ref.$left;
|
|
73
73
|
return {
|
|
74
|
-
backgroundColor: $theme.colors.
|
|
74
|
+
backgroundColor: $theme.colors.backgroundPrimary,
|
|
75
75
|
boxShadow: $theme.lighting.shadow600,
|
|
76
76
|
position: 'absolute',
|
|
77
77
|
padding: $theme.sizing.scale400,
|
|
@@ -121,7 +121,7 @@ function Violation(props) {
|
|
|
121
121
|
if (node) {
|
|
122
122
|
// @ts-ignore
|
|
123
123
|
setAnchor(node);
|
|
124
|
-
node.setAttribute('style', "border: solid 1px ".concat(theme.colors.
|
|
124
|
+
node.setAttribute('style', "border: solid 1px ".concat(theme.colors.borderNegative, ";"));
|
|
125
125
|
node.addEventListener('mouseenter', handleMouseEnter);
|
|
126
126
|
node.addEventListener('mouseleave', handleMouseLeave);
|
|
127
127
|
}
|
package/a11y/a11y.js.flow
CHANGED
|
@@ -44,7 +44,7 @@ const ViolationContainer = styled<{ $top: string, $left: string }>(
|
|
|
44
44
|
'div',
|
|
45
45
|
({ $theme, $top, $left }) => {
|
|
46
46
|
return {
|
|
47
|
-
backgroundColor: $theme.colors.
|
|
47
|
+
backgroundColor: $theme.colors.backgroundPrimary,
|
|
48
48
|
boxShadow: $theme.lighting.shadow600,
|
|
49
49
|
position: 'absolute',
|
|
50
50
|
padding: $theme.sizing.scale400,
|
|
@@ -69,7 +69,7 @@ function Violation(props: ViolationPropsT) {
|
|
|
69
69
|
if (node) {
|
|
70
70
|
setAnchor(node);
|
|
71
71
|
|
|
72
|
-
node.setAttribute('style', `border: solid 1px ${theme.colors.
|
|
72
|
+
node.setAttribute('style', `border: solid 1px ${theme.colors.borderNegative};`);
|
|
73
73
|
|
|
74
74
|
node.addEventListener('mouseenter', handleMouseEnter);
|
|
75
75
|
node.addEventListener('mouseleave', handleMouseLeave);
|
|
@@ -37,7 +37,7 @@ var PanelContainer = (0, _styles.styled)('li', function (props) {
|
|
|
37
37
|
width: '100%',
|
|
38
38
|
borderBottomWidth: '1px',
|
|
39
39
|
borderBottomStyle: 'solid',
|
|
40
|
-
borderBottomColor:
|
|
40
|
+
borderBottomColor: colors.borderOpaque
|
|
41
41
|
};
|
|
42
42
|
});
|
|
43
43
|
exports.PanelContainer = PanelContainer;
|
|
@@ -64,11 +64,11 @@ var Header = (0, _styles.styled)('div', function (props) {
|
|
|
64
64
|
marginRight: 0,
|
|
65
65
|
display: 'flex',
|
|
66
66
|
alignItems: 'center',
|
|
67
|
-
outline: $isFocusVisible ? "3px solid ".concat(colors.
|
|
67
|
+
outline: $isFocusVisible ? "3px solid ".concat(colors.borderAccent) : 'none',
|
|
68
68
|
outlineOffset: '-3px',
|
|
69
69
|
justifyContent: 'space-between',
|
|
70
70
|
':hover': {
|
|
71
|
-
color: colors.
|
|
71
|
+
color: colors.contentPrimary
|
|
72
72
|
}
|
|
73
73
|
});
|
|
74
74
|
});
|
|
@@ -31,7 +31,7 @@ export const PanelContainer = styled<SharedStylePropsArgT>('li', (props) => {
|
|
|
31
31
|
width: '100%',
|
|
32
32
|
borderBottomWidth: '1px',
|
|
33
33
|
borderBottomStyle: 'solid',
|
|
34
|
-
borderBottomColor: $expanded ? colors.
|
|
34
|
+
borderBottomColor: $expanded ? colors.borderOpaque : colors.borderOpaque,
|
|
35
35
|
};
|
|
36
36
|
});
|
|
37
37
|
|
|
@@ -56,11 +56,11 @@ export const Header = styled<SharedStylePropsArgT>('div', (props) => {
|
|
|
56
56
|
marginRight: 0,
|
|
57
57
|
display: 'flex',
|
|
58
58
|
alignItems: 'center',
|
|
59
|
-
outline: $isFocusVisible ? `3px solid ${colors.
|
|
59
|
+
outline: $isFocusVisible ? `3px solid ${colors.borderAccent}` : 'none',
|
|
60
60
|
outlineOffset: '-3px',
|
|
61
61
|
justifyContent: 'space-between',
|
|
62
62
|
':hover': {
|
|
63
|
-
color: colors.
|
|
63
|
+
color: colors.contentPrimary,
|
|
64
64
|
},
|
|
65
65
|
};
|
|
66
66
|
});
|
|
@@ -43,7 +43,7 @@ var StyledButton = (0, _styles.styled)('button', function (_ref) {
|
|
|
43
43
|
marginTop: 0,
|
|
44
44
|
marginRight: 0,
|
|
45
45
|
marginBottom: 0,
|
|
46
|
-
outline: $isFocusVisible ? "3px solid ".concat($theme.colors.
|
|
46
|
+
outline: $isFocusVisible ? "3px solid ".concat($theme.colors.borderAccent) : 'none',
|
|
47
47
|
outlineOffset: '-3px',
|
|
48
48
|
WebkitAppearance: 'none',
|
|
49
49
|
cursor: 'pointer'
|
|
@@ -88,7 +88,7 @@ StyledSpacing.displayName = 'StyledSpacing';
|
|
|
88
88
|
var StyledAppName = (0, _styles.styled)('div', function (_ref3) {
|
|
89
89
|
var $theme = _ref3.$theme;
|
|
90
90
|
return _objectSpread(_objectSpread({}, $theme.typography.font550), {}, _defineProperty({
|
|
91
|
-
color: $theme.colors.
|
|
91
|
+
color: $theme.colors.contentPrimary,
|
|
92
92
|
textDecoration: 'none'
|
|
93
93
|
}, $theme.mediaQuery.medium, _objectSpread({}, $theme.typography.font650)));
|
|
94
94
|
});
|
|
@@ -145,11 +145,11 @@ var StyledMainMenuItem = (0, _styles.styled)('div', function (props) {
|
|
|
145
145
|
marginRight: sizing.scale700,
|
|
146
146
|
paddingTop: $kind === _constants.KIND.secondary ? sizing.scale750 : '0',
|
|
147
147
|
paddingBottom: $kind === _constants.KIND.secondary ? sizing.scale750 : '0',
|
|
148
|
-
outline: $isFocusVisible ? "3px solid ".concat(colors.
|
|
148
|
+
outline: $isFocusVisible ? "3px solid ".concat(colors.borderAccent) : 'none',
|
|
149
149
|
outlineOffset: '-3px',
|
|
150
150
|
borderBottomWidth: '2px',
|
|
151
151
|
borderBottomStyle: 'solid',
|
|
152
|
-
borderBottomColor: $active && !$isFocusVisible ? colors.
|
|
152
|
+
borderBottomColor: $active && !$isFocusVisible ? colors.borderSelected : 'transparent',
|
|
153
153
|
cursor: $active ? 'default' : 'pointer',
|
|
154
154
|
whiteSpace: $kind === _constants.KIND.secondary ? 'nowrap' : 'initial',
|
|
155
155
|
':first-child': _objectSpread({}, direction === 'rtl' ? {
|
|
@@ -163,7 +163,7 @@ var StyledMainMenuItem = (0, _styles.styled)('div', function (props) {
|
|
|
163
163
|
marginRight: '0'
|
|
164
164
|
}),
|
|
165
165
|
':hover': {
|
|
166
|
-
color: colors.
|
|
166
|
+
color: colors.contentPrimary
|
|
167
167
|
}
|
|
168
168
|
};
|
|
169
169
|
});
|
|
@@ -35,7 +35,7 @@ const StyledButton = styled<{ $isFocusVisible: boolean }>(
|
|
|
35
35
|
marginTop: 0,
|
|
36
36
|
marginRight: 0,
|
|
37
37
|
marginBottom: 0,
|
|
38
|
-
outline: $isFocusVisible ? `3px solid ${$theme.colors.
|
|
38
|
+
outline: $isFocusVisible ? `3px solid ${$theme.colors.borderAccent}` : 'none',
|
|
39
39
|
outlineOffset: '-3px',
|
|
40
40
|
WebkitAppearance: 'none',
|
|
41
41
|
cursor: 'pointer',
|
|
@@ -76,7 +76,7 @@ export const StyledSpacing = styled<{}>('div', (props) => {
|
|
|
76
76
|
|
|
77
77
|
export const StyledAppName = styled<{}>('div', ({ $theme }) => ({
|
|
78
78
|
...$theme.typography.font550,
|
|
79
|
-
color: $theme.colors.
|
|
79
|
+
color: $theme.colors.contentPrimary,
|
|
80
80
|
textDecoration: 'none',
|
|
81
81
|
[$theme.mediaQuery.medium]: {
|
|
82
82
|
...$theme.typography.font650,
|
|
@@ -130,11 +130,11 @@ export const StyledMainMenuItem = styled<{
|
|
|
130
130
|
marginRight: sizing.scale700,
|
|
131
131
|
paddingTop: $kind === KIND.secondary ? sizing.scale750 : '0',
|
|
132
132
|
paddingBottom: $kind === KIND.secondary ? sizing.scale750 : '0',
|
|
133
|
-
outline: $isFocusVisible ? `3px solid ${colors.
|
|
133
|
+
outline: $isFocusVisible ? `3px solid ${colors.borderAccent}` : 'none',
|
|
134
134
|
outlineOffset: '-3px',
|
|
135
135
|
borderBottomWidth: '2px',
|
|
136
136
|
borderBottomStyle: 'solid',
|
|
137
|
-
borderBottomColor: $active && !$isFocusVisible ? colors.
|
|
137
|
+
borderBottomColor: $active && !$isFocusVisible ? colors.borderSelected : 'transparent',
|
|
138
138
|
cursor: $active ? 'default' : 'pointer',
|
|
139
139
|
whiteSpace: $kind === KIND.secondary ? 'nowrap' : 'initial',
|
|
140
140
|
':first-child': {
|
|
@@ -144,7 +144,7 @@ export const StyledMainMenuItem = styled<{
|
|
|
144
144
|
...(direction === 'rtl' ? { marginLeft: '0' } : { marginRight: '0' }),
|
|
145
145
|
},
|
|
146
146
|
':hover': {
|
|
147
|
-
color: colors.
|
|
147
|
+
color: colors.contentPrimary,
|
|
148
148
|
},
|
|
149
149
|
};
|
|
150
150
|
});
|
|
@@ -41,7 +41,7 @@ Avatar.displayName = "Avatar";
|
|
|
41
41
|
Avatar.displayName = 'Avatar';
|
|
42
42
|
var Initials = (0, _styles.styled)('div', function (props) {
|
|
43
43
|
return _objectSpread(_objectSpread({}, props.$theme.typography.font300), {}, {
|
|
44
|
-
color: props.$theme.colors.
|
|
44
|
+
color: props.$theme.colors.contentInversePrimary,
|
|
45
45
|
alignItems: 'center',
|
|
46
46
|
display: 'flex',
|
|
47
47
|
justifyContent: 'center',
|
|
@@ -56,7 +56,7 @@ var Root = (0, _styles.styled)('div', function (props) {
|
|
|
56
56
|
var $didImageFailToLoad = props.$didImageFailToLoad;
|
|
57
57
|
var themedSize = getSize(props);
|
|
58
58
|
return {
|
|
59
|
-
backgroundColor: $didImageFailToLoad ? props.$theme.colors.
|
|
59
|
+
backgroundColor: $didImageFailToLoad ? props.$theme.colors.backgroundInversePrimary : null,
|
|
60
60
|
borderTopLeftRadius: '50%',
|
|
61
61
|
borderTopRightRadius: '50%',
|
|
62
62
|
borderBottomRightRadius: '50%',
|
|
@@ -35,7 +35,7 @@ export const Avatar = styled<AvatarStylePropsT>('img', (props) => {
|
|
|
35
35
|
|
|
36
36
|
export const Initials = styled<InitialsStylePropsT>('div', (props) => ({
|
|
37
37
|
...props.$theme.typography.font300,
|
|
38
|
-
color: props.$theme.colors.
|
|
38
|
+
color: props.$theme.colors.contentInversePrimary,
|
|
39
39
|
alignItems: 'center',
|
|
40
40
|
display: 'flex',
|
|
41
41
|
justifyContent: 'center',
|
|
@@ -47,7 +47,7 @@ export const Root = styled<RootStylePropsT>('div', (props) => {
|
|
|
47
47
|
const themedSize = getSize(props);
|
|
48
48
|
|
|
49
49
|
return ({
|
|
50
|
-
backgroundColor: $didImageFailToLoad ? props.$theme.colors.
|
|
50
|
+
backgroundColor: $didImageFailToLoad ? props.$theme.colors.backgroundInversePrimary : null,
|
|
51
51
|
borderTopLeftRadius: '50%',
|
|
52
52
|
borderTopRightRadius: '50%',
|
|
53
53
|
borderBottomRightRadius: '50%',
|
|
@@ -43,7 +43,7 @@ function getColorStyles(_ref) {
|
|
|
43
43
|
color: $theme.colors.contentAccent,
|
|
44
44
|
backgroundColor: $theme.colors.backgroundAccentLight
|
|
45
45
|
}), _defineProperty(_HIERARCHY$secondary, _constants.COLOR.primary, {
|
|
46
|
-
color: $theme.colors.
|
|
46
|
+
color: $theme.colors.contentPrimary,
|
|
47
47
|
backgroundColor: $theme.colors.backgroundSecondary
|
|
48
48
|
}), _defineProperty(_HIERARCHY$secondary, _constants.COLOR.positive, {
|
|
49
49
|
color: $theme.colors.contentPositive,
|
|
@@ -42,7 +42,7 @@ function getColorStyles({ $theme, $hierarchy, $color }): {|
|
|
|
42
42
|
backgroundColor: $theme.colors.backgroundAccentLight,
|
|
43
43
|
},
|
|
44
44
|
[COLOR.primary]: {
|
|
45
|
-
color: $theme.colors.
|
|
45
|
+
color: $theme.colors.contentPrimary,
|
|
46
46
|
backgroundColor: $theme.colors.backgroundSecondary,
|
|
47
47
|
},
|
|
48
48
|
[COLOR.positive]: {
|
|
@@ -40,7 +40,7 @@ var BaseButton = (0, _styles.styled)('button', function (_ref) {
|
|
|
40
40
|
borderRightStyle: 'none',
|
|
41
41
|
borderBottomStyle: 'none',
|
|
42
42
|
outline: 'none',
|
|
43
|
-
boxShadow: $isFocusVisible ? "inset 0 0 0 3px ".concat($theme.colors.
|
|
43
|
+
boxShadow: $isFocusVisible ? "inset 0 0 0 3px ".concat($theme.colors.borderAccent) : 'none',
|
|
44
44
|
textDecoration: 'none',
|
|
45
45
|
WebkitAppearance: 'none',
|
|
46
46
|
transitionProperty: 'background',
|
|
@@ -38,7 +38,7 @@ export const BaseButton = styled<SharedStylePropsT>(
|
|
|
38
38
|
borderRightStyle: 'none',
|
|
39
39
|
borderBottomStyle: 'none',
|
|
40
40
|
outline: 'none',
|
|
41
|
-
boxShadow: $isFocusVisible ? `inset 0 0 0 3px ${$theme.colors.
|
|
41
|
+
boxShadow: $isFocusVisible ? `inset 0 0 0 3px ${$theme.colors.borderAccent}` : 'none',
|
|
42
42
|
textDecoration: 'none',
|
|
43
43
|
WebkitAppearance: 'none',
|
|
44
44
|
transitionProperty: 'background',
|
|
@@ -130,7 +130,7 @@ function getLabelColor(props) {
|
|
|
130
130
|
var $disabled = props.$disabled,
|
|
131
131
|
$theme = props.$theme;
|
|
132
132
|
var colors = $theme.colors;
|
|
133
|
-
return $disabled ? colors.
|
|
133
|
+
return $disabled ? colors.contentStateDisabled : colors.contentPrimary;
|
|
134
134
|
}
|
|
135
135
|
|
|
136
136
|
var Root = (0, _styles.styled)('label', function (props) {
|
|
@@ -188,7 +188,7 @@ var Checkmark = (0, _styles.styled)('span', function (props) {
|
|
|
188
188
|
borderTopRightRadius: borderRadius,
|
|
189
189
|
borderBottomRightRadius: borderRadius,
|
|
190
190
|
borderBottomLeftRadius: borderRadius,
|
|
191
|
-
outline: $isFocusVisible && $checked ? "3px solid ".concat($theme.colors.
|
|
191
|
+
outline: $isFocusVisible && $checked ? "3px solid ".concat($theme.colors.borderAccent) : 'none',
|
|
192
192
|
display: 'inline-block',
|
|
193
193
|
verticalAlign: 'middle',
|
|
194
194
|
backgroundImage: $isIndeterminate ? "url('data:image/svg+xml,".concat(indeterminate, "');") : $checked ? "url('data:image/svg+xml,".concat(check, "');") : null,
|
|
@@ -250,7 +250,7 @@ var Toggle = (0, _styles.styled)('div', function (props) {
|
|
|
250
250
|
borderTopRightRadius: '50%',
|
|
251
251
|
borderBottomRightRadius: '50%',
|
|
252
252
|
borderBottomLeftRadius: '50%',
|
|
253
|
-
boxShadow: props.$isFocusVisible ? "0 0 0 3px ".concat(props.$theme.colors.
|
|
253
|
+
boxShadow: props.$isFocusVisible ? "0 0 0 3px ".concat(props.$theme.colors.borderAccent) : props.$isHovered && !props.$disabled ? props.$theme.lighting.shadow500 : props.$theme.lighting.shadow400,
|
|
254
254
|
outline: 'none',
|
|
255
255
|
height: props.$theme.sizing.scale700,
|
|
256
256
|
width: props.$theme.sizing.scale700,
|
|
@@ -171,7 +171,7 @@ export const Checkmark = styled<SharedStylePropsT>('span', (props) => {
|
|
|
171
171
|
borderTopRightRadius: borderRadius,
|
|
172
172
|
borderBottomRightRadius: borderRadius,
|
|
173
173
|
borderBottomLeftRadius: borderRadius,
|
|
174
|
-
outline: $isFocusVisible && $checked ? `3px solid ${$theme.colors.
|
|
174
|
+
outline: $isFocusVisible && $checked ? `3px solid ${$theme.colors.borderAccent}` : 'none',
|
|
175
175
|
display: 'inline-block',
|
|
176
176
|
verticalAlign: 'middle',
|
|
177
177
|
backgroundImage: $isIndeterminate
|
|
@@ -230,7 +230,7 @@ export const Toggle = styled<SharedStylePropsT>('div', (props) => {
|
|
|
230
230
|
borderBottomRightRadius: '50%',
|
|
231
231
|
borderBottomLeftRadius: '50%',
|
|
232
232
|
boxShadow: props.$isFocusVisible
|
|
233
|
-
? `0 0 0 3px ${props.$theme.colors.
|
|
233
|
+
? `0 0 0 3px ${props.$theme.colors.borderAccent}`
|
|
234
234
|
: props.$isHovered && !props.$disabled
|
|
235
235
|
? props.$theme.lighting.shadow500
|
|
236
236
|
: props.$theme.lighting.shadow400,
|
|
@@ -176,7 +176,7 @@ var Histogram = /*#__PURE__*/React.memo(function Histogram(_ref) {
|
|
|
176
176
|
|
|
177
177
|
return /*#__PURE__*/React.createElement("rect", {
|
|
178
178
|
key: "bar-".concat(index),
|
|
179
|
-
fill: included ? theme.colors.
|
|
179
|
+
fill: included ? theme.colors.backgroundInversePrimary : theme.colors.backgroundSecondary,
|
|
180
180
|
x: x,
|
|
181
181
|
y: y,
|
|
182
182
|
width: width,
|
|
@@ -441,7 +441,7 @@ function NumericalFilter(props) {
|
|
|
441
441
|
return {
|
|
442
442
|
// For range selection we use the color as is, but when selecting the single value,
|
|
443
443
|
// we don't want the track standing out, so mute its color
|
|
444
|
-
background: theme.colors.
|
|
444
|
+
background: theme.colors.backgroundSecondary
|
|
445
445
|
};
|
|
446
446
|
}
|
|
447
447
|
}
|
|
@@ -149,7 +149,7 @@ const Histogram = React.memo(function Histogram({
|
|
|
149
149
|
return (
|
|
150
150
|
<rect
|
|
151
151
|
key={`bar-${index}`}
|
|
152
|
-
fill={included ? theme.colors.
|
|
152
|
+
fill={included ? theme.colors.backgroundInversePrimary : theme.colors.backgroundSecondary}
|
|
153
153
|
x={x}
|
|
154
154
|
y={y}
|
|
155
155
|
width={width}
|
|
@@ -365,7 +365,7 @@ function NumericalFilter(props) {
|
|
|
365
365
|
return {
|
|
366
366
|
// For range selection we use the color as is, but when selecting the single value,
|
|
367
367
|
// we don't want the track standing out, so mute its color
|
|
368
|
-
background: theme.colors.
|
|
368
|
+
background: theme.colors.backgroundSecondary,
|
|
369
369
|
};
|
|
370
370
|
}
|
|
371
371
|
},
|
|
@@ -115,7 +115,7 @@ function Options(props) {
|
|
|
115
115
|
className: css({
|
|
116
116
|
backgroundColor: theme.colors.menuFill,
|
|
117
117
|
minWidth: '320px',
|
|
118
|
-
outline: focusVisible ? "3px solid ".concat(theme.colors.
|
|
118
|
+
outline: focusVisible ? "3px solid ".concat(theme.colors.borderAccent) : 'none',
|
|
119
119
|
paddingTop: theme.sizing.scale600,
|
|
120
120
|
paddingBottom: theme.sizing.scale600
|
|
121
121
|
})
|
|
@@ -83,7 +83,7 @@ function Options(props: OptionsPropsT) {
|
|
|
83
83
|
className={css({
|
|
84
84
|
backgroundColor: theme.colors.menuFill,
|
|
85
85
|
minWidth: '320px',
|
|
86
|
-
outline: focusVisible ? `3px solid ${theme.colors.
|
|
86
|
+
outline: focusVisible ? `3px solid ${theme.colors.borderAccent}` : 'none',
|
|
87
87
|
paddingTop: theme.sizing.scale600,
|
|
88
88
|
paddingBottom: theme.sizing.scale600,
|
|
89
89
|
})}
|
|
@@ -114,7 +114,7 @@ var HeaderCell = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
114
114
|
display: 'flex',
|
|
115
115
|
flexGrow: 1,
|
|
116
116
|
height: '100%',
|
|
117
|
-
outline: focusVisible ? "3px solid ".concat(theme.colors.
|
|
117
|
+
outline: focusVisible ? "3px solid ".concat(theme.colors.borderAccent) : 'none',
|
|
118
118
|
outlineOffset: '-3px',
|
|
119
119
|
// paddingLeft: theme.sizing.scale500,
|
|
120
120
|
paddingRight: theme.sizing.scale500,
|
|
@@ -74,7 +74,7 @@ const HeaderCell = React.forwardRef<HeaderCellPropsT, HTMLDivElement>((props, re
|
|
|
74
74
|
paddingRight: theme.sizing.scale500,
|
|
75
75
|
flexWrap: 'nowrap',
|
|
76
76
|
whiteSpace: 'nowrap',
|
|
77
|
-
outline: focusVisible ? `3px solid ${theme.colors.
|
|
77
|
+
outline: focusVisible ? `3px solid ${theme.colors.borderAccent}` : 'none',
|
|
78
78
|
outlineOffset: '-3px',
|
|
79
79
|
})}
|
|
80
80
|
onMouseEnter={props.onMouseEnter}
|
|
@@ -194,7 +194,7 @@ var StyledMonthYearSelectButton = (0, _styles.styled)('button', function (props)
|
|
|
194
194
|
paddingRight: $density === _constants.DENSITY.high ? sizing.scale500 : sizing.scale600,
|
|
195
195
|
outline: 'none',
|
|
196
196
|
':focus': {
|
|
197
|
-
boxShadow: $isFocusVisible ? "0 0 0 3px ".concat(colors.
|
|
197
|
+
boxShadow: $isFocusVisible ? "0 0 0 3px ".concat(colors.borderAccent) : 'none'
|
|
198
198
|
}
|
|
199
199
|
});
|
|
200
200
|
});
|
|
@@ -240,7 +240,7 @@ function getArrowBtnStyle(_ref6) {
|
|
|
240
240
|
marginTop: 0,
|
|
241
241
|
outline: 'none',
|
|
242
242
|
':focus': $disabled ? {} : {
|
|
243
|
-
boxShadow: $isFocusVisible ? "0 0 0 3px ".concat($theme.colors.
|
|
243
|
+
boxShadow: $isFocusVisible ? "0 0 0 3px ".concat($theme.colors.borderAccent) : 'none'
|
|
244
244
|
},
|
|
245
245
|
width: '48px'
|
|
246
246
|
};
|
|
@@ -577,7 +577,7 @@ var StyledDay = (0, _styles.styled)('div', function (props) {
|
|
|
577
577
|
content: '""',
|
|
578
578
|
boxSizing: 'border-box',
|
|
579
579
|
display: 'inline-block',
|
|
580
|
-
boxShadow: $isFocusVisible && (!$outsideMonth || $peekNextMonth) ? "0 0 0 3px ".concat(colors.
|
|
580
|
+
boxShadow: $isFocusVisible && (!$outsideMonth || $peekNextMonth) ? "0 0 0 3px ".concat(colors.borderAccent) : 'none',
|
|
581
581
|
backgroundColor: $selected ? colors.calendarDayBackgroundSelectedHighlighted : $pseudoSelected && $isHighlighted ? colors.calendarDayBackgroundPseudoSelectedHighlighted : colors.calendarBackground,
|
|
582
582
|
height: circleHeight,
|
|
583
583
|
width: $density === _constants.DENSITY.high ? '40px' : '48px',
|
|
@@ -613,7 +613,7 @@ var StyledDay = (0, _styles.styled)('div', function (props) {
|
|
|
613
613
|
content: '""',
|
|
614
614
|
boxSizing: 'border-box',
|
|
615
615
|
display: 'inline-block',
|
|
616
|
-
backgroundColor: colors.
|
|
616
|
+
backgroundColor: colors.backgroundTertiary,
|
|
617
617
|
position: 'absolute',
|
|
618
618
|
height: circleHeight,
|
|
619
619
|
width: '50%',
|
|
@@ -632,7 +632,7 @@ var StyledDay = (0, _styles.styled)('div', function (props) {
|
|
|
632
632
|
borderLeftColor: 'transparent',
|
|
633
633
|
borderRightColor: 'transparent'
|
|
634
634
|
}, getDayStyles(code, props.$theme)[':before'] || {}), $outsideMonthWithinRange ? {
|
|
635
|
-
backgroundColor: colors.
|
|
635
|
+
backgroundColor: colors.backgroundTertiary,
|
|
636
636
|
left: '0',
|
|
637
637
|
width: '100%',
|
|
638
638
|
content: '""'
|
|
@@ -145,7 +145,7 @@ export const StyledMonthYearSelectButton = styled<SharedStylePropsT>('button', (
|
|
|
145
145
|
display: 'flex',
|
|
146
146
|
outline: 'none',
|
|
147
147
|
':focus': {
|
|
148
|
-
boxShadow: $isFocusVisible ? `0 0 0 3px ${colors.
|
|
148
|
+
boxShadow: $isFocusVisible ? `0 0 0 3px ${colors.borderAccent}` : 'none',
|
|
149
149
|
},
|
|
150
150
|
};
|
|
151
151
|
});
|
|
@@ -182,7 +182,7 @@ function getArrowBtnStyle({ $theme, $disabled, $isFocusVisible }) {
|
|
|
182
182
|
':focus': $disabled
|
|
183
183
|
? {}
|
|
184
184
|
: {
|
|
185
|
-
boxShadow: $isFocusVisible ? `0 0 0 3px ${$theme.colors.
|
|
185
|
+
boxShadow: $isFocusVisible ? `0 0 0 3px ${$theme.colors.borderAccent}` : 'none',
|
|
186
186
|
},
|
|
187
187
|
};
|
|
188
188
|
}
|
|
@@ -473,7 +473,7 @@ export const StyledDay = styled<SharedStylePropsT>('div', (props) => {
|
|
|
473
473
|
display: 'inline-block',
|
|
474
474
|
boxShadow:
|
|
475
475
|
$isFocusVisible && (!$outsideMonth || $peekNextMonth)
|
|
476
|
-
? `0 0 0 3px ${colors.
|
|
476
|
+
? `0 0 0 3px ${colors.borderAccent}`
|
|
477
477
|
: 'none',
|
|
478
478
|
backgroundColor: $selected
|
|
479
479
|
? colors.calendarDayBackgroundSelectedHighlighted
|
|
@@ -515,7 +515,7 @@ export const StyledDay = styled<SharedStylePropsT>('div', (props) => {
|
|
|
515
515
|
content: '""',
|
|
516
516
|
boxSizing: 'border-box',
|
|
517
517
|
display: 'inline-block',
|
|
518
|
-
backgroundColor: colors.
|
|
518
|
+
backgroundColor: colors.backgroundTertiary,
|
|
519
519
|
position: 'absolute',
|
|
520
520
|
height: '100%',
|
|
521
521
|
width: '50%',
|
|
@@ -536,7 +536,7 @@ export const StyledDay = styled<SharedStylePropsT>('div', (props) => {
|
|
|
536
536
|
...(getDayStyles(code, props.$theme)[':before'] || {}),
|
|
537
537
|
...($outsideMonthWithinRange
|
|
538
538
|
? {
|
|
539
|
-
backgroundColor: colors.
|
|
539
|
+
backgroundColor: colors.backgroundTertiary,
|
|
540
540
|
left: '0',
|
|
541
541
|
width: '100%',
|
|
542
542
|
content: '""',
|
|
@@ -56,13 +56,13 @@ function (_ref3) {
|
|
|
56
56
|
borderBottomStyle: 'solid',
|
|
57
57
|
borderLeftStyle: 'solid',
|
|
58
58
|
borderRightStyle: 'solid',
|
|
59
|
-
borderTopColor: $theme.colors.
|
|
60
|
-
borderBottomColor: $theme.colors.
|
|
61
|
-
borderLeftColor: $theme.colors.
|
|
62
|
-
borderRightColor: $theme.colors.
|
|
59
|
+
borderTopColor: $theme.colors.borderSelected,
|
|
60
|
+
borderBottomColor: $theme.colors.borderSelected,
|
|
61
|
+
borderLeftColor: $theme.colors.borderSelected,
|
|
62
|
+
borderRightColor: $theme.colors.borderSelected
|
|
63
63
|
} : {},
|
|
64
64
|
':focus': {
|
|
65
|
-
outline: $isFocusVisible && !$isDragged && !$isSelected ? "3px solid ".concat($theme.colors.
|
|
65
|
+
outline: $isFocusVisible && !$isDragged && !$isSelected ? "3px solid ".concat($theme.colors.borderAccent) : 'none',
|
|
66
66
|
outlineOffset: '-3px'
|
|
67
67
|
},
|
|
68
68
|
paddingTop: $theme.sizing.scale600,
|
|
@@ -85,10 +85,10 @@ function (_ref3) {
|
|
|
85
85
|
borderBottomStyle: 'solid',
|
|
86
86
|
borderLeftStyle: 'solid',
|
|
87
87
|
borderRightStyle: 'solid',
|
|
88
|
-
borderTopColor: $isDragged || $isSelected ? $theme.colors.
|
|
89
|
-
borderBottomColor: $isDragged || $isSelected ? $theme.colors.
|
|
90
|
-
borderLeftColor: $isDragged || $isSelected ? $theme.colors.
|
|
91
|
-
borderRightColor: $isDragged || $isSelected ? $theme.colors.
|
|
88
|
+
borderTopColor: $isDragged || $isSelected ? $theme.colors.borderSelected : 'transparent',
|
|
89
|
+
borderBottomColor: $isDragged || $isSelected ? $theme.colors.borderSelected : 'transparent',
|
|
90
|
+
borderLeftColor: $isDragged || $isSelected ? $theme.colors.borderSelected : 'transparent',
|
|
91
|
+
borderRightColor: $isDragged || $isSelected ? $theme.colors.borderSelected : 'transparent'
|
|
92
92
|
};
|
|
93
93
|
});
|
|
94
94
|
exports.Item = Item;
|
|
@@ -125,7 +125,7 @@ var CloseHandle = (0, _styles.styled)('button', function (_ref6) {
|
|
|
125
125
|
cursor: 'pointer',
|
|
126
126
|
backgroundColor: 'transparent'
|
|
127
127
|
}, _defineProperty(_ref7, marginDir, $theme.sizing.scale600), _defineProperty(_ref7, "width", $theme.sizing.scale800), _defineProperty(_ref7, "display", 'flex'), _defineProperty(_ref7, "alignItems", 'center'), _defineProperty(_ref7, ':focus', {
|
|
128
|
-
outline: $isFocusVisible ? "3px solid ".concat($theme.colors.
|
|
128
|
+
outline: $isFocusVisible ? "3px solid ".concat($theme.colors.borderAccent) : 'none'
|
|
129
129
|
}), _ref7;
|
|
130
130
|
});
|
|
131
131
|
exports.CloseHandle = CloseHandle;
|
|
@@ -42,16 +42,16 @@ export const Item = styled<SharedStylePropsArgT>(
|
|
|
42
42
|
borderBottomStyle: 'solid',
|
|
43
43
|
borderLeftStyle: 'solid',
|
|
44
44
|
borderRightStyle: 'solid',
|
|
45
|
-
borderTopColor: $theme.colors.
|
|
46
|
-
borderBottomColor: $theme.colors.
|
|
47
|
-
borderLeftColor: $theme.colors.
|
|
48
|
-
borderRightColor: $theme.colors.
|
|
45
|
+
borderTopColor: $theme.colors.borderSelected,
|
|
46
|
+
borderBottomColor: $theme.colors.borderSelected,
|
|
47
|
+
borderLeftColor: $theme.colors.borderSelected,
|
|
48
|
+
borderRightColor: $theme.colors.borderSelected,
|
|
49
49
|
}
|
|
50
50
|
: {},
|
|
51
51
|
':focus': {
|
|
52
52
|
outline:
|
|
53
53
|
$isFocusVisible && !$isDragged && !$isSelected
|
|
54
|
-
? `3px solid ${$theme.colors.
|
|
54
|
+
? `3px solid ${$theme.colors.borderAccent}`
|
|
55
55
|
: 'none',
|
|
56
56
|
outlineOffset: '-3px',
|
|
57
57
|
},
|
|
@@ -75,10 +75,10 @@ export const Item = styled<SharedStylePropsArgT>(
|
|
|
75
75
|
borderBottomStyle: 'solid',
|
|
76
76
|
borderLeftStyle: 'solid',
|
|
77
77
|
borderRightStyle: 'solid',
|
|
78
|
-
borderTopColor: $isDragged || $isSelected ? $theme.colors.
|
|
79
|
-
borderBottomColor: $isDragged || $isSelected ? $theme.colors.
|
|
80
|
-
borderLeftColor: $isDragged || $isSelected ? $theme.colors.
|
|
81
|
-
borderRightColor: $isDragged || $isSelected ? $theme.colors.
|
|
78
|
+
borderTopColor: $isDragged || $isSelected ? $theme.colors.borderSelected : 'transparent',
|
|
79
|
+
borderBottomColor: $isDragged || $isSelected ? $theme.colors.borderSelected : 'transparent',
|
|
80
|
+
borderLeftColor: $isDragged || $isSelected ? $theme.colors.borderSelected : 'transparent',
|
|
81
|
+
borderRightColor: $isDragged || $isSelected ? $theme.colors.borderSelected : 'transparent',
|
|
82
82
|
}: {});
|
|
83
83
|
}
|
|
84
84
|
);
|
|
@@ -115,7 +115,7 @@ export const CloseHandle = styled<SharedStylePropsArgT>('button', ({ $theme, $is
|
|
|
115
115
|
display: 'flex',
|
|
116
116
|
alignItems: 'center',
|
|
117
117
|
':focus': {
|
|
118
|
-
outline: $isFocusVisible ? `3px solid ${$theme.colors.
|
|
118
|
+
outline: $isFocusVisible ? `3px solid ${$theme.colors.borderAccent}` : 'none',
|
|
119
119
|
},
|
|
120
120
|
};
|
|
121
121
|
});
|
|
@@ -9,6 +9,8 @@ var _styles = require("../styles");
|
|
|
9
9
|
|
|
10
10
|
var _constants = require("./constants");
|
|
11
11
|
|
|
12
|
+
var _tokens = require("../tokens");
|
|
13
|
+
|
|
12
14
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
13
15
|
|
|
14
16
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
@@ -198,7 +200,7 @@ var StyledClose = (0, _styles.styled)('button', function (props) {
|
|
|
198
200
|
paddingRight: 0,
|
|
199
201
|
paddingBottom: 0,
|
|
200
202
|
// colors
|
|
201
|
-
fill: $theme.colors.
|
|
203
|
+
fill: $theme.colors.contentPrimary,
|
|
202
204
|
transitionProperty: 'fill, border-color',
|
|
203
205
|
transitionDuration: $theme.animation.timing200,
|
|
204
206
|
borderLeftWidth: '1px',
|
|
@@ -214,10 +216,10 @@ var StyledClose = (0, _styles.styled)('button', function (props) {
|
|
|
214
216
|
borderTopColor: 'transparent',
|
|
215
217
|
borderBottomColor: 'transparent',
|
|
216
218
|
':hover': {
|
|
217
|
-
fill:
|
|
219
|
+
fill: _tokens.colors.gray600
|
|
218
220
|
},
|
|
219
221
|
':focus': {
|
|
220
|
-
outline: $isFocusVisible ? "3px solid ".concat($theme.colors.
|
|
222
|
+
outline: $isFocusVisible ? "3px solid ".concat($theme.colors.borderAccent) : 'none'
|
|
221
223
|
},
|
|
222
224
|
// Positioning
|
|
223
225
|
position: 'absolute',
|
|
@@ -8,6 +8,7 @@ LICENSE file in the root directory of this source tree.
|
|
|
8
8
|
import { styled } from '../styles/index.js';
|
|
9
9
|
import { SIZE, SIZE_DIMENSION, ANCHOR } from './constants.js';
|
|
10
10
|
import type { SharedStylePropsArgT, SizePropT, AnchorPropT } from './types.js';
|
|
11
|
+
import { colors as colorTokens } from '../tokens/index.js';
|
|
11
12
|
|
|
12
13
|
function getSizeStyles($size: SizePropT, $anchor: AnchorPropT) {
|
|
13
14
|
const styles = {
|
|
@@ -162,7 +163,7 @@ export const StyledClose = styled<SharedStylePropsArgT>('button', (props) => {
|
|
|
162
163
|
paddingBottom: 0,
|
|
163
164
|
|
|
164
165
|
// colors
|
|
165
|
-
fill: $theme.colors.
|
|
166
|
+
fill: $theme.colors.contentPrimary,
|
|
166
167
|
transitionProperty: 'fill, border-color',
|
|
167
168
|
transitionDuration: $theme.animation.timing200,
|
|
168
169
|
borderLeftWidth: '1px',
|
|
@@ -178,10 +179,10 @@ export const StyledClose = styled<SharedStylePropsArgT>('button', (props) => {
|
|
|
178
179
|
borderTopColor: 'transparent',
|
|
179
180
|
borderBottomColor: 'transparent',
|
|
180
181
|
':hover': {
|
|
181
|
-
fill:
|
|
182
|
+
fill: colorTokens.gray600,
|
|
182
183
|
},
|
|
183
184
|
':focus': {
|
|
184
|
-
outline: $isFocusVisible ? `3px solid ${$theme.colors.
|
|
185
|
+
outline: $isFocusVisible ? `3px solid ${$theme.colors.borderAccent}` : 'none',
|
|
185
186
|
},
|
|
186
187
|
|
|
187
188
|
// Positioning
|
package/es/a11y/a11y.js
CHANGED
|
@@ -48,7 +48,7 @@ const ViolationContainer = styled('div', ({
|
|
|
48
48
|
$left
|
|
49
49
|
}) => {
|
|
50
50
|
return {
|
|
51
|
-
backgroundColor: $theme.colors.
|
|
51
|
+
backgroundColor: $theme.colors.backgroundPrimary,
|
|
52
52
|
boxShadow: $theme.lighting.shadow600,
|
|
53
53
|
position: 'absolute',
|
|
54
54
|
padding: $theme.sizing.scale400,
|
|
@@ -78,7 +78,7 @@ function Violation(props) {
|
|
|
78
78
|
if (node) {
|
|
79
79
|
// @ts-ignore
|
|
80
80
|
setAnchor(node);
|
|
81
|
-
node.setAttribute('style', `border: solid 1px ${theme.colors.
|
|
81
|
+
node.setAttribute('style', `border: solid 1px ${theme.colors.borderNegative};`);
|
|
82
82
|
node.addEventListener('mouseenter', handleMouseEnter);
|
|
83
83
|
node.addEventListener('mouseleave', handleMouseLeave);
|
|
84
84
|
}
|