@carbon/styles 0.12.0-rc.0 → 0.14.0-rc.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/package.json +10 -10
- package/scss/_config.scss +6 -0
- package/scss/_type.scss +1 -0
- package/scss/components/_index.scss +1 -0
- package/scss/components/accordion/_accordion.scss +7 -3
- package/scss/components/button/_button.scss +4 -3
- package/scss/components/button/_mixins.scss +7 -3
- package/scss/components/button/_tokens.scss +16 -16
- package/scss/components/checkbox/_checkbox.scss +7 -0
- package/scss/components/code-snippet/_code-snippet.scss +2 -2
- package/scss/components/content-switcher/_content-switcher.scss +28 -1
- package/scss/components/data-table/action/_data-table-action.scss +99 -25
- package/scss/components/date-picker/_date-picker.scss +1 -1
- package/scss/components/date-picker/_flatpickr.scss +1 -0
- package/scss/components/dropdown/_dropdown.scss +0 -16
- package/scss/components/link/_link.scss +15 -2
- package/scss/components/list-box/_list-box.scss +1 -15
- package/scss/components/modal/_modal.scss +91 -102
- package/scss/components/notification/_inline-notification.scss +3 -0
- package/scss/components/notification/_toast-notification.scss +3 -0
- package/scss/components/number-input/_number-input.scss +1 -1
- package/scss/components/pagination/_pagination.scss +56 -7
- package/scss/components/radio-button/_radio-button.scss +3 -2
- package/scss/components/select/_select.scss +7 -2
- package/scss/components/slider/_slider.scss +1 -1
- package/scss/components/tabs/_tabs.scss +21 -0
- package/scss/components/tag/_tag.scss +1 -1
- package/scss/components/text-area/_text-area.scss +7 -1
- package/scss/components/text-input/_text-input.scss +1 -1
- package/scss/components/tile/_tile.scss +1 -1
- package/scss/components/toggle/_toggle.scss +2 -2
- package/scss/components/toggletip/_index.scss +11 -0
- package/scss/components/toggletip/_toggletip.scss +81 -0
- package/scss/components/tooltip/_index.scss +1 -0
- package/scss/components/tooltip/_tooltip.scss +30 -0
- package/scss/components/ui-shell/header/_header.scss +2 -0
- package/scss/fonts/_src.scss +100 -28
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carbon/styles",
|
|
3
3
|
"description": "Styles for the Carbon Design System",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.14.0-rc.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -20,18 +20,18 @@
|
|
|
20
20
|
"access": "public"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@carbon/colors": "^10.
|
|
24
|
-
"@carbon/feature-flags": "^0.7.0
|
|
25
|
-
"@carbon/grid": "^10.
|
|
26
|
-
"@carbon/layout": "^10.
|
|
27
|
-
"@carbon/motion": "^10.
|
|
28
|
-
"@carbon/themes": "^10.
|
|
29
|
-
"@carbon/type": "^10.
|
|
23
|
+
"@carbon/colors": "^10.36.0-rc.0",
|
|
24
|
+
"@carbon/feature-flags": "^0.7.0",
|
|
25
|
+
"@carbon/grid": "^10.41.0-rc.0",
|
|
26
|
+
"@carbon/layout": "^10.36.0-rc.0",
|
|
27
|
+
"@carbon/motion": "^10.28.0-rc.0",
|
|
28
|
+
"@carbon/themes": "^10.51.0-rc.0",
|
|
29
|
+
"@carbon/type": "^10.41.0-rc.0",
|
|
30
30
|
"@ibm/plex": "6.0.0-next.6"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@carbon/test-utils": "^10.21.0
|
|
33
|
+
"@carbon/test-utils": "^10.21.0",
|
|
34
34
|
"css": "^3.0.0"
|
|
35
35
|
},
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "6f5bca3be0e19dc7590617c704a2834514b3176b"
|
|
37
37
|
}
|
package/scss/_config.scss
CHANGED
|
@@ -36,6 +36,12 @@ $font-display: 'swap' !default;
|
|
|
36
36
|
/// @group config
|
|
37
37
|
$font-path: '~@ibm/plex' !default;
|
|
38
38
|
|
|
39
|
+
/// Specify if IBM Plex should be provided by Google Fonts
|
|
40
|
+
/// @access public
|
|
41
|
+
/// @type String
|
|
42
|
+
/// @group config
|
|
43
|
+
$use-google-fonts: false !default;
|
|
44
|
+
|
|
39
45
|
/// The value used to prefix selectors and CSS Custom Properties across the
|
|
40
46
|
/// codebase
|
|
41
47
|
/// @access public
|
package/scss/_type.scss
CHANGED
|
@@ -87,7 +87,7 @@ $content-padding: 0 0 0 $spacing-05 !default;
|
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
&:hover::before {
|
|
90
|
-
background-color: $
|
|
90
|
+
background-color: $layer-hover;
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
&:focus {
|
|
@@ -125,11 +125,15 @@ $content-padding: 0 0 0 $spacing-05 !default;
|
|
|
125
125
|
|
|
126
126
|
.#{$prefix}--accordion__item--disabled,
|
|
127
127
|
.#{$prefix}--accordion__item--disabled + .#{$prefix}--accordion__item {
|
|
128
|
-
|
|
128
|
+
// v10 icon doesn't have 1:1 translation, keeping color same as enabled state
|
|
129
|
+
// https://github.com/carbon-design-system/carbon/issues/10373#issuecomment-1021638147
|
|
130
|
+
border-top: 1px solid $border-subtle;
|
|
129
131
|
}
|
|
130
132
|
|
|
131
133
|
li.#{$prefix}--accordion__item--disabled:last-of-type {
|
|
132
|
-
|
|
134
|
+
// v10 icon doesn't have 1:1 translation, keeping color same as enabled state
|
|
135
|
+
// https://github.com/carbon-design-system/carbon/issues/10373#issuecomment-1021638147
|
|
136
|
+
border-bottom: 1px solid $border-subtle;
|
|
133
137
|
}
|
|
134
138
|
|
|
135
139
|
.#{$prefix}--accordion__arrow {
|
|
@@ -102,9 +102,9 @@
|
|
|
102
102
|
transparent,
|
|
103
103
|
transparent,
|
|
104
104
|
$link-primary,
|
|
105
|
-
$
|
|
105
|
+
$layer-hover,
|
|
106
106
|
currentColor,
|
|
107
|
-
$
|
|
107
|
+
$layer-active
|
|
108
108
|
);
|
|
109
109
|
|
|
110
110
|
padding: $button-padding-ghost;
|
|
@@ -243,6 +243,7 @@
|
|
|
243
243
|
|
|
244
244
|
&:active {
|
|
245
245
|
border-color: $button-danger-active;
|
|
246
|
+
background-color: $button-danger-active;
|
|
246
247
|
color: $text-on-color;
|
|
247
248
|
}
|
|
248
249
|
|
|
@@ -334,7 +335,7 @@
|
|
|
334
335
|
|
|
335
336
|
//expressive styles
|
|
336
337
|
.#{$prefix}--btn--expressive {
|
|
337
|
-
@include type-style('body-
|
|
338
|
+
@include type-style('body-compact-02');
|
|
338
339
|
|
|
339
340
|
min-height: 3rem;
|
|
340
341
|
}
|
|
@@ -13,14 +13,18 @@
|
|
|
13
13
|
@use '../../type' as *;
|
|
14
14
|
@use '../../utilities/component-reset';
|
|
15
15
|
@use '../../utilities/convert' as *;
|
|
16
|
+
@use '../../utilities/custom-property';
|
|
16
17
|
@use 'tokens' as *;
|
|
17
18
|
|
|
19
|
+
$button-focus-color: custom-property.get-var('button-focus-color', $focus);
|
|
20
|
+
|
|
18
21
|
@mixin button-base {
|
|
19
22
|
@include component-reset.reset;
|
|
20
|
-
@include type-style('body-
|
|
23
|
+
@include type-style('body-compact-01');
|
|
21
24
|
|
|
22
25
|
position: relative;
|
|
23
26
|
display: inline-flex;
|
|
27
|
+
width: max-content;
|
|
24
28
|
max-width: rem(320px);
|
|
25
29
|
min-height: $button-height;
|
|
26
30
|
flex-shrink: 0;
|
|
@@ -84,8 +88,8 @@
|
|
|
84
88
|
}
|
|
85
89
|
|
|
86
90
|
&:focus {
|
|
87
|
-
border-color: $focus;
|
|
88
|
-
box-shadow: inset 0 0 0 $button-outline-width $focus,
|
|
91
|
+
border-color: $button-focus-color;
|
|
92
|
+
box-shadow: inset 0 0 0 $button-outline-width $button-focus-color,
|
|
89
93
|
inset 0 0 0 $button-border-width $background;
|
|
90
94
|
}
|
|
91
95
|
|
|
@@ -230,15 +230,15 @@ $button-tertiary-active: (
|
|
|
230
230
|
) !default;
|
|
231
231
|
|
|
232
232
|
$button-danger-hover: (
|
|
233
|
-
fallback: #
|
|
233
|
+
fallback: #b81922,
|
|
234
234
|
values: (
|
|
235
235
|
(
|
|
236
236
|
theme: themes.$white,
|
|
237
|
-
value: #
|
|
237
|
+
value: #b81922,
|
|
238
238
|
),
|
|
239
239
|
(
|
|
240
240
|
theme: themes.$g10,
|
|
241
|
-
value: #
|
|
241
|
+
value: #b81922,
|
|
242
242
|
),
|
|
243
243
|
(
|
|
244
244
|
theme: themes.$g90,
|
|
@@ -252,59 +252,59 @@ $button-danger-hover: (
|
|
|
252
252
|
) !default;
|
|
253
253
|
|
|
254
254
|
$button-primary-hover: (
|
|
255
|
-
fallback: #
|
|
255
|
+
fallback: #0050e6,
|
|
256
256
|
values: (
|
|
257
257
|
(
|
|
258
258
|
theme: themes.$white,
|
|
259
|
-
value: #
|
|
259
|
+
value: #0050e6,
|
|
260
260
|
),
|
|
261
261
|
(
|
|
262
262
|
theme: themes.$g10,
|
|
263
|
-
value: #
|
|
263
|
+
value: #0050e6,
|
|
264
264
|
),
|
|
265
265
|
(
|
|
266
266
|
theme: themes.$g90,
|
|
267
|
-
value: #
|
|
267
|
+
value: #0050e6,
|
|
268
268
|
),
|
|
269
269
|
(
|
|
270
270
|
theme: themes.$g100,
|
|
271
|
-
value: #
|
|
271
|
+
value: #0050e6,
|
|
272
272
|
),
|
|
273
273
|
),
|
|
274
274
|
) !default;
|
|
275
275
|
|
|
276
276
|
$button-secondary-hover: (
|
|
277
|
-
fallback: #
|
|
277
|
+
fallback: #474747,
|
|
278
278
|
values: (
|
|
279
279
|
(
|
|
280
280
|
theme: themes.$white,
|
|
281
|
-
value: #
|
|
281
|
+
value: #474747,
|
|
282
282
|
),
|
|
283
283
|
(
|
|
284
284
|
theme: themes.$g10,
|
|
285
|
-
value: #
|
|
285
|
+
value: #474747,
|
|
286
286
|
),
|
|
287
287
|
(
|
|
288
288
|
theme: themes.$g90,
|
|
289
|
-
value: #
|
|
289
|
+
value: #5e5e5e,
|
|
290
290
|
),
|
|
291
291
|
(
|
|
292
292
|
theme: themes.$g100,
|
|
293
|
-
value: #
|
|
293
|
+
value: #5e5e5e,
|
|
294
294
|
),
|
|
295
295
|
),
|
|
296
296
|
) !default;
|
|
297
297
|
|
|
298
298
|
$button-tertiary-hover: (
|
|
299
|
-
fallback: #
|
|
299
|
+
fallback: #0050e6,
|
|
300
300
|
values: (
|
|
301
301
|
(
|
|
302
302
|
theme: themes.$white,
|
|
303
|
-
value: #
|
|
303
|
+
value: #0050e6,
|
|
304
304
|
),
|
|
305
305
|
(
|
|
306
306
|
theme: themes.$g10,
|
|
307
|
-
value: #
|
|
307
|
+
value: #0050e6,
|
|
308
308
|
),
|
|
309
309
|
(
|
|
310
310
|
theme: themes.$g90,
|
|
@@ -197,4 +197,11 @@
|
|
|
197
197
|
// Add extra spacing when label is present
|
|
198
198
|
margin: rem(1px) 0 0 rem(6px);
|
|
199
199
|
}
|
|
200
|
+
|
|
201
|
+
//-----------------------------------------------
|
|
202
|
+
// InlineCheckbox
|
|
203
|
+
//-----------------------------------------------
|
|
204
|
+
.#{$prefix}--checkbox--inline {
|
|
205
|
+
position: relative;
|
|
206
|
+
}
|
|
200
207
|
}
|
|
@@ -38,13 +38,13 @@ $copy-btn-feedback: $background-inverse !default;
|
|
|
38
38
|
.#{$prefix}--snippet--disabled,
|
|
39
39
|
.#{$prefix}--snippet--disabled
|
|
40
40
|
.#{$prefix}--btn.#{$prefix}--snippet-btn--expand {
|
|
41
|
-
background-color: $layer
|
|
41
|
+
background-color: $layer;
|
|
42
42
|
color: $text-disabled;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
.#{$prefix}--snippet--disabled .#{$prefix}--snippet-btn--expand:hover,
|
|
46
46
|
.#{$prefix}--snippet--disabled .#{$prefix}--copy-btn:hover {
|
|
47
|
-
background-color: $layer
|
|
47
|
+
background-color: $layer;
|
|
48
48
|
color: $text-disabled;
|
|
49
49
|
cursor: not-allowed;
|
|
50
50
|
}
|
|
@@ -52,15 +52,37 @@
|
|
|
52
52
|
color: $text-secondary;
|
|
53
53
|
text-align: left;
|
|
54
54
|
text-decoration: none;
|
|
55
|
-
transition: all $duration-
|
|
55
|
+
transition: all $duration-moderate-01 motion(standard, productive);
|
|
56
56
|
white-space: nowrap;
|
|
57
57
|
|
|
58
|
+
&::after {
|
|
59
|
+
position: absolute;
|
|
60
|
+
top: 0;
|
|
61
|
+
left: 0;
|
|
62
|
+
display: block;
|
|
63
|
+
width: 100%;
|
|
64
|
+
height: 100%;
|
|
65
|
+
background-color: $layer-selected-inverse;
|
|
66
|
+
content: '';
|
|
67
|
+
transform: scaleY(0);
|
|
68
|
+
transform-origin: bottom;
|
|
69
|
+
transition: all $duration-moderate-01 motion(standard, productive);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
&:disabled::after {
|
|
73
|
+
display: none;
|
|
74
|
+
}
|
|
75
|
+
|
|
58
76
|
&:focus {
|
|
59
77
|
z-index: 3;
|
|
60
78
|
border-color: $focus;
|
|
61
79
|
box-shadow: inset 0 0 0 2px $focus, inset 0 0 0 3px $focus-inset;
|
|
62
80
|
}
|
|
63
81
|
|
|
82
|
+
&:focus::after {
|
|
83
|
+
clip-path: inset(3px 3px 3px 3px);
|
|
84
|
+
}
|
|
85
|
+
|
|
64
86
|
&:hover {
|
|
65
87
|
color: $text-primary;
|
|
66
88
|
cursor: pointer;
|
|
@@ -157,6 +179,7 @@
|
|
|
157
179
|
}
|
|
158
180
|
|
|
159
181
|
.#{$prefix}--content-switcher__label {
|
|
182
|
+
z-index: 1;
|
|
160
183
|
overflow: hidden;
|
|
161
184
|
max-width: 100%;
|
|
162
185
|
text-overflow: ellipsis;
|
|
@@ -177,6 +200,10 @@
|
|
|
177
200
|
background-color: $layer-selected-disabled;
|
|
178
201
|
color: $text-disabled;
|
|
179
202
|
}
|
|
203
|
+
|
|
204
|
+
&::after {
|
|
205
|
+
transform: scaleY(1);
|
|
206
|
+
}
|
|
180
207
|
}
|
|
181
208
|
|
|
182
209
|
.#{$prefix}--content-switcher-btn.#{$prefix}--content-switcher--selected
|
|
@@ -47,10 +47,17 @@
|
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
.#{$prefix}--toolbar-content .#{$prefix}--search .#{$prefix}--search-input {
|
|
50
|
+
height: 3rem;
|
|
51
|
+
padding: 0 3rem;
|
|
50
52
|
// For toolbar animation with (esp.) persistent search box
|
|
51
53
|
background-color: transparent;
|
|
52
54
|
}
|
|
53
55
|
|
|
56
|
+
.#{$prefix}--toolbar-content .#{$prefix}--overflow-menu {
|
|
57
|
+
width: 3rem;
|
|
58
|
+
height: 3rem;
|
|
59
|
+
}
|
|
60
|
+
|
|
54
61
|
//-------------------------------------------------
|
|
55
62
|
//DEPRECATED v10/v9 search behavior
|
|
56
63
|
//-------------------------------------------------
|
|
@@ -78,26 +85,19 @@
|
|
|
78
85
|
}
|
|
79
86
|
}
|
|
80
87
|
|
|
88
|
+
.#{$prefix}--search.#{$prefix}--toolbar-search-container-expandable {
|
|
89
|
+
width: 3rem;
|
|
90
|
+
}
|
|
91
|
+
|
|
81
92
|
.#{$prefix}--toolbar-search-container-expandable .#{$prefix}--search-input {
|
|
82
93
|
height: 100%;
|
|
83
|
-
padding: 0;
|
|
84
94
|
cursor: pointer;
|
|
85
95
|
opacity: 0;
|
|
86
96
|
}
|
|
87
97
|
|
|
88
|
-
.#{$prefix}--toolbar-search-container-expandable
|
|
89
|
-
.#{$prefix}--search-
|
|
90
|
-
|
|
91
|
-
width: $spacing-09;
|
|
92
|
-
height: $spacing-09;
|
|
93
|
-
padding: $spacing-05;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.#{$prefix}--toolbar-search-container-expandable.#{$prefix}--search--disabled
|
|
97
|
-
.#{$prefix}--search-magnifier-icon {
|
|
98
|
-
background-color: $layer-disabled;
|
|
99
|
-
cursor: not-allowed;
|
|
100
|
-
transition: background-color none;
|
|
98
|
+
.#{$prefix}--toolbar-search-container-expandable:not(.#{$prefix}--toolbar-search-container-active)
|
|
99
|
+
.#{$prefix}--search-input {
|
|
100
|
+
padding: 0;
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
.#{$prefix}--toolbar-search-container-disabled .#{$prefix}--search-input {
|
|
@@ -126,6 +126,68 @@
|
|
|
126
126
|
background-color: $focus;
|
|
127
127
|
}
|
|
128
128
|
|
|
129
|
+
//-------------------------------------------------
|
|
130
|
+
// Seach icon
|
|
131
|
+
//-------------------------------------------------v
|
|
132
|
+
// lg expandable icon spacing
|
|
133
|
+
.#{$prefix}--table-toolbar
|
|
134
|
+
.#{$prefix}--search--lg
|
|
135
|
+
.#{$prefix}--search-magnifier-icon {
|
|
136
|
+
left: 0;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
// lg persistent icon spacing
|
|
140
|
+
.#{$prefix}--table-toolbar:not(.#{$prefix}--table-toolbar--sm)
|
|
141
|
+
.#{$prefix}--toolbar-search-container-persistent.#{$prefix}--search--lg
|
|
142
|
+
.#{$prefix}--search-magnifier-icon {
|
|
143
|
+
left: 1rem;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
// sm expandable icon spacing
|
|
147
|
+
.#{$prefix}--table-toolbar.#{$prefix}--table-toolbar--sm
|
|
148
|
+
.#{$prefix}--search--sm:not(.#{$prefix}--toolbar-search-container-active):not(.#{$prefix}--toolbar-search-container-persistent)
|
|
149
|
+
.#{$prefix}--search-magnifier-icon {
|
|
150
|
+
left: 0;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.#{$prefix}--table-toolbar.#{$prefix}--table-toolbar--sm
|
|
154
|
+
.#{$prefix}--search--sm.#{$prefix}--toolbar-search-container-active
|
|
155
|
+
.#{$prefix}--search-magnifier-icon {
|
|
156
|
+
left: 0.5rem;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
// sm persistent icon spacing
|
|
160
|
+
.#{$prefix}--table-toolbar
|
|
161
|
+
.#{$prefix}--toolbar-search-container-persistent.#{$prefix}--search--sm
|
|
162
|
+
.#{$prefix}--search-magnifier-icon {
|
|
163
|
+
left: 0.5rem;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.#{$prefix}--toolbar-search-container-expandable
|
|
167
|
+
.#{$prefix}--search-magnifier-icon {
|
|
168
|
+
width: $spacing-09;
|
|
169
|
+
height: $spacing-09;
|
|
170
|
+
padding: $spacing-05;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.#{$prefix}--toolbar-search-container-expandable.#{$prefix}--search--disabled
|
|
174
|
+
.#{$prefix}--search-magnifier-icon {
|
|
175
|
+
background-color: $layer;
|
|
176
|
+
cursor: not-allowed;
|
|
177
|
+
transition: background-color none;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.#{$prefix}--toolbar-search-container-active
|
|
181
|
+
.#{$prefix}--search-magnifier-icon:focus,
|
|
182
|
+
.#{$prefix}--toolbar-search-container-active
|
|
183
|
+
.#{$prefix}--search-magnifier-icon:active,
|
|
184
|
+
.#{$prefix}--toolbar-search-container-active
|
|
185
|
+
.#{$prefix}--search-magnifier-icon:hover {
|
|
186
|
+
border: none;
|
|
187
|
+
background-color: transparent;
|
|
188
|
+
outline: none;
|
|
189
|
+
}
|
|
190
|
+
|
|
129
191
|
//-------------------------------------------------
|
|
130
192
|
//ACTIVE SEARCH - DEFAULT TOOLBAR
|
|
131
193
|
//-------------------------------------------------
|
|
@@ -158,17 +220,6 @@
|
|
|
158
220
|
background-color: $field-hover;
|
|
159
221
|
}
|
|
160
222
|
|
|
161
|
-
.#{$prefix}--toolbar-search-container-active
|
|
162
|
-
.#{$prefix}--search-magnifier-icon:focus,
|
|
163
|
-
.#{$prefix}--toolbar-search-container-active
|
|
164
|
-
.#{$prefix}--search-magnifier-icon:active,
|
|
165
|
-
.#{$prefix}--toolbar-search-container-active
|
|
166
|
-
.#{$prefix}--search-magnifier-icon:hover {
|
|
167
|
-
border: none;
|
|
168
|
-
background-color: transparent;
|
|
169
|
-
outline: none;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
223
|
//-------------------------------------------------
|
|
173
224
|
//SEARCH CLOSE BUTTON
|
|
174
225
|
//-------------------------------------------------
|
|
@@ -455,6 +506,7 @@
|
|
|
455
506
|
.#{$prefix}--table-toolbar--small,
|
|
456
507
|
.#{$prefix}--table-toolbar--sm {
|
|
457
508
|
height: rem(32px);
|
|
509
|
+
min-height: rem(32px);
|
|
458
510
|
|
|
459
511
|
.#{$prefix}--toolbar-search-container-expandable,
|
|
460
512
|
.#{$prefix}--toolbar-search-container-persistent {
|
|
@@ -530,6 +582,22 @@
|
|
|
530
582
|
|
|
531
583
|
background-color: transparent;
|
|
532
584
|
}
|
|
585
|
+
|
|
586
|
+
.#{$prefix}--overflow-menu.#{$prefix}--toolbar-action {
|
|
587
|
+
width: rem(32px);
|
|
588
|
+
//:after element is 2rem but w/o this trigger button is for some reason 28px
|
|
589
|
+
min-width: rem(32px);
|
|
590
|
+
height: rem(32px);
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
.#{$prefix}--toolbar-content {
|
|
594
|
+
height: rem(32px);
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
.#{$prefix}--toolbar-content .#{$prefix}--overflow-menu {
|
|
598
|
+
width: 2rem;
|
|
599
|
+
height: 2rem;
|
|
600
|
+
}
|
|
533
601
|
}
|
|
534
602
|
|
|
535
603
|
.#{$prefix}--search--disabled .#{$prefix}--search-magnifier-icon:hover {
|
|
@@ -584,4 +652,10 @@
|
|
|
584
652
|
overflow: hidden;
|
|
585
653
|
height: rem(32px);
|
|
586
654
|
}
|
|
655
|
+
|
|
656
|
+
// V11: remove --small selector block
|
|
657
|
+
.#{$prefix}--table-toolbar--small .#{$prefix}--batch-summary,
|
|
658
|
+
.#{$prefix}--table-toolbar--sm .#{$prefix}--batch-summary {
|
|
659
|
+
min-height: 2rem;
|
|
660
|
+
}
|
|
587
661
|
}
|
|
@@ -219,6 +219,7 @@
|
|
|
219
219
|
text-decoration: none;
|
|
220
220
|
transform: scale(1, 1) #{'/*rtl: scale(-1,1)*/'};
|
|
221
221
|
transition: background-color $duration-fast-01 motion(standard, productive);
|
|
222
|
+
user-select: none;
|
|
222
223
|
// Windows HCM fix
|
|
223
224
|
@include high-contrast-mode('icon-fill');
|
|
224
225
|
|
|
@@ -70,15 +70,11 @@
|
|
|
70
70
|
text-align: left;
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
-
// TODO V11: Remove xl selector
|
|
74
|
-
.#{$prefix}--dropdown--xl,
|
|
75
73
|
.#{$prefix}--dropdown--lg {
|
|
76
74
|
height: rem(48px);
|
|
77
75
|
max-height: rem(48px);
|
|
78
76
|
}
|
|
79
77
|
|
|
80
|
-
// TODO V11: Remove xl selector
|
|
81
|
-
.#{$prefix}--dropdown--xl .#{$prefix}--dropdown__arrow,
|
|
82
78
|
.#{$prefix}--dropdown--lg .#{$prefix}--dropdown__arrow {
|
|
83
79
|
top: rem(16px);
|
|
84
80
|
}
|
|
@@ -277,12 +273,6 @@
|
|
|
277
273
|
padding-bottom: rem(7px);
|
|
278
274
|
}
|
|
279
275
|
|
|
280
|
-
.#{$prefix}--dropdown--xl .#{$prefix}--dropdown-link {
|
|
281
|
-
height: rem(48px);
|
|
282
|
-
padding-top: rem(15px);
|
|
283
|
-
padding-bottom: rem(15px);
|
|
284
|
-
}
|
|
285
|
-
|
|
286
276
|
.#{$prefix}--dropdown--focused,
|
|
287
277
|
.#{$prefix}--dropdown-link:focus {
|
|
288
278
|
@include focus-outline('outline');
|
|
@@ -329,12 +319,6 @@
|
|
|
329
319
|
transform: rotate(-180deg);
|
|
330
320
|
}
|
|
331
321
|
|
|
332
|
-
.#{$prefix}--dropdown--open.#{$prefix}--dropdown--xl
|
|
333
|
-
.#{$prefix}--dropdown-list {
|
|
334
|
-
// 48px item height * 5.5 items shown
|
|
335
|
-
max-height: rem(264px);
|
|
336
|
-
}
|
|
337
|
-
|
|
338
322
|
.#{$prefix}--dropdown--open.#{$prefix}--dropdown--sm
|
|
339
323
|
.#{$prefix}--dropdown-list {
|
|
340
324
|
// 32px item height * 5.5 items shown
|
|
@@ -11,8 +11,19 @@
|
|
|
11
11
|
@use '../../theme' as *;
|
|
12
12
|
@use '../../type';
|
|
13
13
|
@use '../../utilities/component-reset';
|
|
14
|
+
@use '../../utilities/custom-property';
|
|
14
15
|
@use '../../utilities/focus-outline' as *;
|
|
15
16
|
|
|
17
|
+
$link-text-color: custom-property.get-var('link-text-color', $link-primary);
|
|
18
|
+
$link-hover-text-color: custom-property.get-var(
|
|
19
|
+
'link-hover-text-color',
|
|
20
|
+
$link-primary-hover
|
|
21
|
+
);
|
|
22
|
+
$link-focus-text-color: custom-property.get-var(
|
|
23
|
+
'link-focus-text-color',
|
|
24
|
+
$focus
|
|
25
|
+
);
|
|
26
|
+
|
|
16
27
|
/// Link styles
|
|
17
28
|
/// @access public
|
|
18
29
|
/// @group link
|
|
@@ -22,13 +33,13 @@
|
|
|
22
33
|
@include type.type-style('body-short-01');
|
|
23
34
|
|
|
24
35
|
display: inline-flex;
|
|
25
|
-
color: $link-
|
|
36
|
+
color: $link-text-color;
|
|
26
37
|
outline: none;
|
|
27
38
|
text-decoration: none;
|
|
28
39
|
transition: color $duration-fast-01 motion(standard, productive);
|
|
29
40
|
|
|
30
41
|
&:hover {
|
|
31
|
-
color: $link-
|
|
42
|
+
color: $link-hover-text-color;
|
|
32
43
|
text-decoration: underline;
|
|
33
44
|
}
|
|
34
45
|
|
|
@@ -41,6 +52,8 @@
|
|
|
41
52
|
|
|
42
53
|
&:focus {
|
|
43
54
|
@include focus-outline;
|
|
55
|
+
|
|
56
|
+
outline-color: $link-focus-text-color;
|
|
44
57
|
}
|
|
45
58
|
|
|
46
59
|
&:visited {
|
|
@@ -92,8 +92,6 @@ $list-box-menu-width: rem(300px);
|
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
// TODO V11: Remove xl selector
|
|
96
|
-
.#{$prefix}--list-box--xl,
|
|
97
95
|
.#{$prefix}--list-box--lg {
|
|
98
96
|
height: rem(48px);
|
|
99
97
|
max-height: rem(48px);
|
|
@@ -479,7 +477,7 @@ $list-box-menu-width: rem(300px);
|
|
|
479
477
|
}
|
|
480
478
|
|
|
481
479
|
.#{$prefix}--list-box--disabled .#{$prefix}--list-box__selection--multi {
|
|
482
|
-
@include tag-theme($text-disabled, $field
|
|
480
|
+
@include tag-theme($text-disabled, $field);
|
|
483
481
|
|
|
484
482
|
> svg {
|
|
485
483
|
fill: $icon-disabled;
|
|
@@ -524,9 +522,6 @@ $list-box-menu-width: rem(300px);
|
|
|
524
522
|
max-height: rem(220px);
|
|
525
523
|
}
|
|
526
524
|
|
|
527
|
-
// TODO V11: Remove xl selector
|
|
528
|
-
.#{$prefix}--list-box--expanded.#{$prefix}--list-box--xl
|
|
529
|
-
.#{$prefix}--list-box__menu,
|
|
530
525
|
.#{$prefix}--list-box--expanded.#{$prefix}--list-box--lg
|
|
531
526
|
.#{$prefix}--list-box__menu {
|
|
532
527
|
// 48px item height * 5.5 items shown
|
|
@@ -568,8 +563,6 @@ $list-box-menu-width: rem(300px);
|
|
|
568
563
|
height: rem(32px);
|
|
569
564
|
}
|
|
570
565
|
|
|
571
|
-
// TODO V11: Remove xl selector
|
|
572
|
-
.#{$prefix}--list-box--xl .#{$prefix}--list-box__menu-item,
|
|
573
566
|
.#{$prefix}--list-box--lg .#{$prefix}--list-box__menu-item {
|
|
574
567
|
height: rem(48px);
|
|
575
568
|
}
|
|
@@ -653,8 +646,6 @@ $list-box-menu-width: rem(300px);
|
|
|
653
646
|
padding-bottom: rem(7px);
|
|
654
647
|
}
|
|
655
648
|
|
|
656
|
-
// TODO V11: Remove xl selector
|
|
657
|
-
.#{$prefix}--list-box--xl .#{$prefix}--list-box__menu-item__option,
|
|
658
649
|
.#{$prefix}--list-box--lg .#{$prefix}--list-box__menu-item__option {
|
|
659
650
|
height: rem(48px);
|
|
660
651
|
padding-top: rem(15px);
|
|
@@ -803,11 +794,6 @@ $list-box-menu-width: rem(300px);
|
|
|
803
794
|
bottom: 2rem;
|
|
804
795
|
}
|
|
805
796
|
|
|
806
|
-
// TODO V11: Remove xl selector
|
|
807
|
-
.#{$prefix}--list-box--up.#{$prefix}--dropdown--xl
|
|
808
|
-
.#{$prefix}--list-box__menu,
|
|
809
|
-
.#{$prefix}--list-box--up.#{$prefix}--list-box--xl
|
|
810
|
-
.#{$prefix}--list-box__menu,
|
|
811
797
|
.#{$prefix}--list-box--up.#{$prefix}--dropdown--lg
|
|
812
798
|
.#{$prefix}--list-box__menu,
|
|
813
799
|
.#{$prefix}--list-box--up.#{$prefix}--list-box--lg
|