@carbon/styles 0.8.0-rc.0 → 0.10.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 +9 -9
- package/scss/_feature-flags.scss +8 -1
- package/scss/components/button/_button.scss +2 -112
- package/scss/components/button/_tokens.scss +2 -2
- package/scss/components/checkbox/_checkbox.scss +3 -0
- package/scss/components/code-snippet/_code-snippet.scss +3 -3
- package/scss/components/data-table/_data-table.scss +1 -0
- package/scss/components/data-table/expandable/_data-table-expandable.scss +2 -2
- package/scss/components/date-picker/_date-picker.scss +1 -1
- package/scss/components/date-picker/_flatpickr.scss +39 -38
- package/scss/components/dropdown/_dropdown.scss +4 -4
- package/scss/components/form/_form.scss +7 -4
- package/scss/components/list-box/_list-box.scss +4 -4
- package/scss/components/notification/_inline-notification.scss +2 -2
- package/scss/components/notification/_toast-notification.scss +3 -3
- package/scss/components/number-input/_number-input.scss +3 -3
- package/scss/components/overflow-menu/_overflow-menu.scss +5 -4
- package/scss/components/popover/_popover.scss +241 -199
- package/scss/components/radio-button/_radio-button.scss +11 -9
- package/scss/components/search/_search.scss +7 -7
- package/scss/components/structured-list/_structured-list.scss +3 -3
- package/scss/components/tabs/_tabs.scss +111 -551
- package/scss/components/tile/_tile.scss +4 -3
- package/scss/components/toggle/_toggle.scss +80 -18
- package/scss/components/tooltip/_index.scss +1 -0
- package/scss/components/tooltip/_tooltip.scss +38 -725
- package/scss/components/treeview/_treeview.scss +17 -17
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.10.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.
|
|
23
|
+
"@carbon/colors": "^10.34.0",
|
|
24
24
|
"@carbon/feature-flags": "^0.6.0",
|
|
25
|
-
"@carbon/grid": "^10.39.0
|
|
26
|
-
"@carbon/layout": "^10.34.0
|
|
27
|
-
"@carbon/motion": "^10.
|
|
28
|
-
"@carbon/themes": "^10.
|
|
29
|
-
"@carbon/type": "^10.38.0
|
|
25
|
+
"@carbon/grid": "^10.39.0",
|
|
26
|
+
"@carbon/layout": "^10.34.0",
|
|
27
|
+
"@carbon/motion": "^10.26.0",
|
|
28
|
+
"@carbon/themes": "^10.47.0",
|
|
29
|
+
"@carbon/type": "^10.38.0",
|
|
30
30
|
"@ibm/plex": "6.0.0-next.6"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@carbon/test-utils": "^10.
|
|
33
|
+
"@carbon/test-utils": "^10.20.0",
|
|
34
34
|
"css": "^3.0.0"
|
|
35
35
|
},
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "919fcfc3b4e247d057c6112f8cacf8aec33fe234"
|
|
37
37
|
}
|
package/scss/_feature-flags.scss
CHANGED
|
@@ -5,4 +5,11 @@
|
|
|
5
5
|
// LICENSE file in the root directory of this source tree.
|
|
6
6
|
//
|
|
7
7
|
|
|
8
|
-
@forward '@carbon/feature-flags'
|
|
8
|
+
@forward '@carbon/feature-flags' with (
|
|
9
|
+
$feature-flags: (
|
|
10
|
+
'enable-css-custom-properties': true,
|
|
11
|
+
'enable-use-controlled-state-with-value': true,
|
|
12
|
+
'enable-css-grid': true,
|
|
13
|
+
'enable-v11-release': true,
|
|
14
|
+
) !default
|
|
15
|
+
);
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
@use '../../utilities/focus-outline';
|
|
16
16
|
@use '../../utilities/high-contrast-mode' as *;
|
|
17
17
|
@use '../../utilities/skeleton' as *;
|
|
18
|
-
@use '../../utilities/tooltip' as *;
|
|
19
18
|
@use '../../utilities/visually-hidden' as *;
|
|
20
19
|
@use 'tokens' as *;
|
|
21
20
|
|
|
@@ -145,118 +144,9 @@
|
|
|
145
144
|
&.#{$prefix}--btn--md {
|
|
146
145
|
padding: $button-padding-ghost-field;
|
|
147
146
|
}
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
.#{$prefix}--btn.#{$prefix}--btn--icon-only.#{$prefix}--tooltip__trigger {
|
|
151
|
-
@include tooltip--trigger('icon', 'bottom');
|
|
152
|
-
|
|
153
|
-
svg,
|
|
154
|
-
&:hover svg,
|
|
155
|
-
&:focus svg {
|
|
156
|
-
fill: currentColor;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
&.#{$prefix}--btn--disabled.#{$prefix}--tooltip--a11y::before,
|
|
160
|
-
&.#{$prefix}--btn--disabled.#{$prefix}--tooltip--a11y::after,
|
|
161
|
-
&.#{$prefix}--btn--disabled .#{$prefix}--assistive-text {
|
|
162
|
-
overflow: hidden;
|
|
163
|
-
margin: -1px;
|
|
164
|
-
clip: rect(0, 0, 0, 0);
|
|
165
|
-
opacity: 0;
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
// Allow pointer events on tooltip when tooltip is visible
|
|
170
|
-
.#{$prefix}--btn.#{$prefix}--btn--icon-only:not(.#{$prefix}--tooltip--hidden)
|
|
171
|
-
.#{$prefix}--assistive-text {
|
|
172
|
-
pointer-events: all;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
.#{$prefix}--btn.#{$prefix}--btn--icon-only.#{$prefix}--tooltip__trigger:focus {
|
|
176
|
-
border-color: $focus;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
.#{$prefix}--btn.#{$prefix}--btn--icon-only.#{$prefix}--tooltip__trigger:active:not([disabled]) {
|
|
180
|
-
border-color: transparent;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
.#{$prefix}--btn.#{$prefix}--btn--icon-only.#{$prefix}--tooltip__trigger:focus
|
|
184
|
-
svg {
|
|
185
|
-
outline-color: transparent;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
.#{$prefix}--btn.#{$prefix}--btn--icon-only.#{$prefix}--tooltip__trigger[disabled]:hover,
|
|
189
|
-
.#{$prefix}--btn.#{$prefix}--btn--icon-only.#{$prefix}--tooltip__trigger[disabled]:focus,
|
|
190
|
-
.#{$prefix}--btn.#{$prefix}--btn--icon-only.#{$prefix}--tooltip__trigger[disabled]:active {
|
|
191
|
-
cursor: not-allowed;
|
|
192
|
-
fill: $icon-on-color-disabled;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
.#{$prefix}--tooltip__trigger.#{$prefix}--btn--icon-only--top {
|
|
196
|
-
@include tooltip--trigger('icon', 'top');
|
|
197
|
-
@include tooltip--placement('icon', 'top', 'center');
|
|
198
|
-
|
|
199
|
-
&.#{$prefix}--tooltip--align-start {
|
|
200
|
-
@include tooltip--placement('icon', 'top', 'start');
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
&.#{$prefix}--tooltip--align-center {
|
|
204
|
-
@include tooltip--placement('icon', 'top', 'center');
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
&.#{$prefix}--tooltip--align-end {
|
|
208
|
-
@include tooltip--placement('icon', 'top', 'end');
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
.#{$prefix}--tooltip__trigger.#{$prefix}--btn--icon-only--right {
|
|
213
|
-
@include tooltip--trigger('icon', 'right');
|
|
214
|
-
@include tooltip--placement('icon', 'right', 'center');
|
|
215
|
-
|
|
216
|
-
&.#{$prefix}--tooltip--align-start {
|
|
217
|
-
@include tooltip--placement('icon', 'right', 'start');
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
&.#{$prefix}--tooltip--align-center {
|
|
221
|
-
@include tooltip--placement('icon', 'right', 'center');
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
&.#{$prefix}--tooltip--align-end {
|
|
225
|
-
@include tooltip--placement('icon', 'right', 'end');
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
.#{$prefix}--tooltip__trigger.#{$prefix}--btn--icon-only--bottom {
|
|
230
|
-
@include tooltip--trigger('icon', 'bottom');
|
|
231
|
-
@include tooltip--placement('icon', 'bottom', 'center');
|
|
232
|
-
|
|
233
|
-
&.#{$prefix}--tooltip--align-start {
|
|
234
|
-
@include tooltip--placement('icon', 'bottom', 'start');
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
&.#{$prefix}--tooltip--align-center {
|
|
238
|
-
@include tooltip--placement('icon', 'bottom', 'center');
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
&.#{$prefix}--tooltip--align-end {
|
|
242
|
-
@include tooltip--placement('icon', 'bottom', 'end');
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
.#{$prefix}--tooltip__trigger.#{$prefix}--btn--icon-only--left {
|
|
247
|
-
@include tooltip--trigger('icon', 'left');
|
|
248
|
-
@include tooltip--placement('icon', 'left', 'center');
|
|
249
|
-
|
|
250
|
-
&.#{$prefix}--tooltip--align-start {
|
|
251
|
-
@include tooltip--placement('icon', 'left', 'start');
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
&.#{$prefix}--tooltip--align-center {
|
|
255
|
-
@include tooltip--placement('icon', 'left', 'center');
|
|
256
|
-
}
|
|
257
147
|
|
|
258
|
-
|
|
259
|
-
|
|
148
|
+
&:not([disabled]) svg {
|
|
149
|
+
fill: $icon-primary;
|
|
260
150
|
}
|
|
261
151
|
}
|
|
262
152
|
|
|
@@ -41,6 +41,9 @@
|
|
|
41
41
|
// to match the specs.
|
|
42
42
|
.#{$prefix}--checkbox {
|
|
43
43
|
@include visually-hidden;
|
|
44
|
+
//even though its hidden, positioning is for native validation to be aligned to checkbox
|
|
45
|
+
top: 1.25rem;
|
|
46
|
+
left: 0.7rem;
|
|
44
47
|
}
|
|
45
48
|
|
|
46
49
|
// The label corresponds to the content inside of the `label` tag. Since we're
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
@use '../../config' as *;
|
|
9
9
|
@use '../../motion' as *;
|
|
10
10
|
@use '../../spacing' as *;
|
|
11
|
-
@use '../../
|
|
11
|
+
@use '../../theme' as *;
|
|
12
12
|
@use '../../type' as *;
|
|
13
13
|
@use '../copy-button';
|
|
14
14
|
@use '../../utilities/convert' as *;
|
|
@@ -395,7 +395,7 @@ $copy-btn-feedback: $background-inverse !default;
|
|
|
395
395
|
.#{$prefix}--snippet--light
|
|
396
396
|
.#{$prefix}--btn.#{$prefix}--snippet-btn--expand:hover,
|
|
397
397
|
.#{$prefix}--snippet--light .#{$prefix}--copy-btn:hover {
|
|
398
|
-
background-color: $hover-
|
|
398
|
+
background-color: $layer-hover-02;
|
|
399
399
|
}
|
|
400
400
|
|
|
401
401
|
.#{$prefix}--snippet--light.#{$prefix}--snippet--inline:active,
|
|
@@ -403,7 +403,7 @@ $copy-btn-feedback: $background-inverse !default;
|
|
|
403
403
|
.#{$prefix}--snippet--light
|
|
404
404
|
.#{$prefix}--btn.#{$prefix}--snippet-btn--expand:active,
|
|
405
405
|
.#{$prefix}--snippet--light .#{$prefix}--copy-btn:active {
|
|
406
|
-
background-color: $active-
|
|
406
|
+
background-color: $layer-active-02;
|
|
407
407
|
}
|
|
408
408
|
|
|
409
409
|
.#{$prefix}--snippet--light.#{$prefix}--snippet--single::after,
|
|
@@ -341,6 +341,7 @@
|
|
|
341
341
|
|
|
342
342
|
.#{$prefix}--data-table thead th.#{$prefix}--table-column-checkbox,
|
|
343
343
|
.#{$prefix}--data-table tbody td.#{$prefix}--table-column-checkbox {
|
|
344
|
+
width: 2.5rem;
|
|
344
345
|
// spacing between checkbox / chevron and next cell should be 8px / 0.5rem
|
|
345
346
|
padding-right: rem(4px);
|
|
346
347
|
padding-left: 1rem;
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
@use '../../../config' as *;
|
|
9
9
|
@use '../../../motion' as *;
|
|
10
10
|
@use '../../../spacing' as *;
|
|
11
|
-
@use '../../../
|
|
11
|
+
@use '../../../theme' as *;
|
|
12
12
|
@use '../../../utilities/button-reset';
|
|
13
13
|
@use '../../../utilities/convert' as *;
|
|
14
14
|
@use '../../../utilities/focus-outline' as *;
|
|
@@ -226,7 +226,7 @@
|
|
|
226
226
|
}
|
|
227
227
|
|
|
228
228
|
.#{$prefix}--table-expand__svg {
|
|
229
|
-
fill: $
|
|
229
|
+
fill: $layer-selected-inverse;
|
|
230
230
|
transform: rotate(90deg);
|
|
231
231
|
transition: transform $duration-moderate-01 motion(standard, productive);
|
|
232
232
|
}
|
|
@@ -5,9 +5,8 @@
|
|
|
5
5
|
// LICENSE file in the root directory of this source tree.
|
|
6
6
|
//
|
|
7
7
|
|
|
8
|
-
// @use '../../config' as *;
|
|
9
8
|
@use '../../motion' as *;
|
|
10
|
-
@use '../../
|
|
9
|
+
@use '../../theme' as *;
|
|
11
10
|
@use '../../spacing' as *;
|
|
12
11
|
@use '../../type' as *;
|
|
13
12
|
@use '../../utilities/box-shadow' as *;
|
|
@@ -15,6 +14,8 @@
|
|
|
15
14
|
@use '../../utilities/focus-outline' as *;
|
|
16
15
|
@use '../../utilities/high-contrast-mode' as *;
|
|
17
16
|
|
|
17
|
+
@use '../button/tokens' as *;
|
|
18
|
+
|
|
18
19
|
@keyframes fpFadeInDown {
|
|
19
20
|
from {
|
|
20
21
|
opacity: 0;
|
|
@@ -121,7 +122,7 @@
|
|
|
121
122
|
padding: $spacing-02 $spacing-02 $spacing-03 $spacing-02;
|
|
122
123
|
border: none;
|
|
123
124
|
margin-top: rem(-2px);
|
|
124
|
-
background-color: $
|
|
125
|
+
background-color: $layer-01;
|
|
125
126
|
|
|
126
127
|
&:focus {
|
|
127
128
|
@include focus-outline('border');
|
|
@@ -198,7 +199,7 @@
|
|
|
198
199
|
height: rem(40px);
|
|
199
200
|
align-items: center;
|
|
200
201
|
background-color: transparent;
|
|
201
|
-
color: $text-
|
|
202
|
+
color: $text-primary;
|
|
202
203
|
line-height: 1;
|
|
203
204
|
text-align: center;
|
|
204
205
|
}
|
|
@@ -213,7 +214,7 @@
|
|
|
213
214
|
justify-content: center;
|
|
214
215
|
padding: 0;
|
|
215
216
|
cursor: pointer;
|
|
216
|
-
fill: $icon-
|
|
217
|
+
fill: $icon-primary;
|
|
217
218
|
line-height: 16px;
|
|
218
219
|
text-decoration: none;
|
|
219
220
|
transform: scale(1, 1) #{'/*rtl: scale(-1,1)*/'};
|
|
@@ -222,19 +223,19 @@
|
|
|
222
223
|
@include high-contrast-mode('icon-fill');
|
|
223
224
|
|
|
224
225
|
&:hover {
|
|
225
|
-
background-color: $hover
|
|
226
|
+
background-color: $background-hover;
|
|
226
227
|
}
|
|
227
228
|
}
|
|
228
229
|
|
|
229
230
|
.flatpickr-next-month.disabled svg,
|
|
230
231
|
.flatpickr-prev-month.disabled svg {
|
|
231
232
|
cursor: not-allowed;
|
|
232
|
-
fill: $
|
|
233
|
+
fill: $icon-disabled;
|
|
233
234
|
}
|
|
234
235
|
|
|
235
236
|
.flatpickr-next-month.disabled:hover svg,
|
|
236
237
|
.flatpickr-prev-month.disabled:hover svg {
|
|
237
|
-
fill: $
|
|
238
|
+
fill: $icon-disabled;
|
|
238
239
|
}
|
|
239
240
|
|
|
240
241
|
.flatpickr-current-month {
|
|
@@ -252,7 +253,7 @@
|
|
|
252
253
|
margin-left: $spacing-02;
|
|
253
254
|
|
|
254
255
|
&:hover {
|
|
255
|
-
background-color: $hover
|
|
256
|
+
background-color: $background-hover;
|
|
256
257
|
}
|
|
257
258
|
}
|
|
258
259
|
|
|
@@ -261,7 +262,7 @@
|
|
|
261
262
|
width: rem(60px);
|
|
262
263
|
|
|
263
264
|
&:hover {
|
|
264
|
-
background-color: $hover
|
|
265
|
+
background-color: $background-hover;
|
|
265
266
|
}
|
|
266
267
|
}
|
|
267
268
|
|
|
@@ -274,7 +275,7 @@
|
|
|
274
275
|
// Added in when upgraded to Flatpickr 4.5.5 (#1977)
|
|
275
276
|
-moz-appearance: textfield; /* Firefox */
|
|
276
277
|
background-color: $field-01;
|
|
277
|
-
color: $text-
|
|
278
|
+
color: $text-primary;
|
|
278
279
|
cursor: default;
|
|
279
280
|
font-family: inherit;
|
|
280
281
|
font-size: inherit;
|
|
@@ -293,8 +294,8 @@
|
|
|
293
294
|
|
|
294
295
|
&[disabled],
|
|
295
296
|
&[disabled]:hover {
|
|
296
|
-
background-color: $
|
|
297
|
-
color: $disabled
|
|
297
|
+
background-color: $layer-01;
|
|
298
|
+
color: $text-disabled;
|
|
298
299
|
pointer-events: none;
|
|
299
300
|
}
|
|
300
301
|
}
|
|
@@ -304,7 +305,7 @@
|
|
|
304
305
|
border-bottom: 0;
|
|
305
306
|
|
|
306
307
|
&::after {
|
|
307
|
-
border-bottom: rem(4px) solid $
|
|
308
|
+
border-bottom: rem(4px) solid $border-subtle;
|
|
308
309
|
}
|
|
309
310
|
}
|
|
310
311
|
|
|
@@ -312,7 +313,7 @@
|
|
|
312
313
|
top: rem(11px);
|
|
313
314
|
|
|
314
315
|
&::after {
|
|
315
|
-
border-top: rem(4px) solid $
|
|
316
|
+
border-top: rem(4px) solid $border-subtle;
|
|
316
317
|
}
|
|
317
318
|
}
|
|
318
319
|
|
|
@@ -338,22 +339,22 @@
|
|
|
338
339
|
}
|
|
339
340
|
|
|
340
341
|
&:hover::after {
|
|
341
|
-
border-top-color: $
|
|
342
|
-
border-bottom-color: $
|
|
342
|
+
border-top-color: $button-primary;
|
|
343
|
+
border-bottom-color: $button-primary;
|
|
343
344
|
}
|
|
344
345
|
|
|
345
346
|
&:active::after {
|
|
346
|
-
border-top-color: $interactive
|
|
347
|
-
border-bottom-color: $interactive
|
|
347
|
+
border-top-color: $border-interactive;
|
|
348
|
+
border-bottom-color: $border-interactive;
|
|
348
349
|
}
|
|
349
350
|
}
|
|
350
351
|
|
|
351
352
|
.numInput[disabled] ~ .arrowUp::after {
|
|
352
|
-
border-bottom-color: $disabled
|
|
353
|
+
border-bottom-color: $text-disabled;
|
|
353
354
|
}
|
|
354
355
|
|
|
355
356
|
.numInput[disabled] ~ .arrowDown::after {
|
|
356
|
-
border-top-color: $disabled
|
|
357
|
+
border-top-color: $text-disabled;
|
|
357
358
|
}
|
|
358
359
|
|
|
359
360
|
.numInputWrapper:hover .arrowUp,
|
|
@@ -381,7 +382,7 @@
|
|
|
381
382
|
@include type-style('body-short-01');
|
|
382
383
|
|
|
383
384
|
flex: 1;
|
|
384
|
-
color: $text-
|
|
385
|
+
color: $text-primary;
|
|
385
386
|
cursor: default;
|
|
386
387
|
}
|
|
387
388
|
|
|
@@ -423,29 +424,29 @@
|
|
|
423
424
|
height: rem(40px);
|
|
424
425
|
align-items: center;
|
|
425
426
|
justify-content: center;
|
|
426
|
-
color: $text-
|
|
427
|
+
color: $text-primary;
|
|
427
428
|
cursor: pointer;
|
|
428
429
|
transition: all $duration-fast-01 motion(standard, productive);
|
|
429
430
|
|
|
430
431
|
&:hover {
|
|
431
|
-
background: $hover
|
|
432
|
+
background: $background-hover;
|
|
432
433
|
}
|
|
433
434
|
|
|
434
435
|
&:focus {
|
|
435
436
|
@include focus-outline('outline');
|
|
436
437
|
|
|
437
|
-
outline-color: $
|
|
438
|
+
outline-color: $button-primary;
|
|
438
439
|
}
|
|
439
440
|
}
|
|
440
441
|
|
|
441
442
|
.nextMonthDay,
|
|
442
443
|
.prevMonthDay {
|
|
443
|
-
color: $text-
|
|
444
|
+
color: $text-helper;
|
|
444
445
|
}
|
|
445
446
|
|
|
446
447
|
.flatpickr-day.today {
|
|
447
448
|
position: relative;
|
|
448
|
-
color: $link-
|
|
449
|
+
color: $link-primary;
|
|
449
450
|
font-weight: 600;
|
|
450
451
|
|
|
451
452
|
&::after {
|
|
@@ -455,7 +456,7 @@
|
|
|
455
456
|
display: block;
|
|
456
457
|
width: rem(4px);
|
|
457
458
|
height: rem(4px);
|
|
458
|
-
background-color: $link-
|
|
459
|
+
background-color: $link-primary;
|
|
459
460
|
content: '';
|
|
460
461
|
transform: translateX(-50%);
|
|
461
462
|
}
|
|
@@ -475,18 +476,18 @@
|
|
|
475
476
|
|
|
476
477
|
.flatpickr-day.inRange {
|
|
477
478
|
background-color: $highlight;
|
|
478
|
-
color: $text-
|
|
479
|
+
color: $text-primary;
|
|
479
480
|
}
|
|
480
481
|
|
|
481
482
|
.flatpickr-day.selected {
|
|
482
|
-
background-color: $
|
|
483
|
-
color: $text-
|
|
483
|
+
background-color: $button-primary;
|
|
484
|
+
color: $text-on-color;
|
|
484
485
|
@include high-contrast-mode('focus') {
|
|
485
486
|
outline-style: dotted;
|
|
486
487
|
}
|
|
487
488
|
|
|
488
489
|
&:focus {
|
|
489
|
-
outline: rem(1px) solid $
|
|
490
|
+
outline: rem(1px) solid $layer-02;
|
|
490
491
|
outline-offset: rem(-3px);
|
|
491
492
|
}
|
|
492
493
|
}
|
|
@@ -501,23 +502,23 @@
|
|
|
501
502
|
@include focus-outline('outline');
|
|
502
503
|
|
|
503
504
|
z-index: 3;
|
|
504
|
-
background: $
|
|
505
|
+
background: $layer-01;
|
|
505
506
|
}
|
|
506
507
|
|
|
507
508
|
.flatpickr-day.endRange:hover {
|
|
508
509
|
@include focus-outline('outline');
|
|
509
510
|
|
|
510
|
-
background: $
|
|
511
|
-
color: $text-
|
|
511
|
+
background: $layer-01;
|
|
512
|
+
color: $text-primary;
|
|
512
513
|
}
|
|
513
514
|
|
|
514
515
|
.flatpickr-day.endRange.inRange.selected {
|
|
515
|
-
background: $
|
|
516
|
-
color: $text-
|
|
516
|
+
background: $button-primary;
|
|
517
|
+
color: $text-on-color;
|
|
517
518
|
}
|
|
518
519
|
|
|
519
520
|
.flatpickr-day.flatpickr-disabled {
|
|
520
|
-
color: $disabled
|
|
521
|
+
color: $text-disabled;
|
|
521
522
|
cursor: not-allowed;
|
|
522
523
|
|
|
523
524
|
&:hover {
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
@use '../../config' as *;
|
|
10
10
|
@use '../../motion' as *;
|
|
11
11
|
@use '../../spacing' as *;
|
|
12
|
-
@use '../../
|
|
12
|
+
@use '../../theme' as *;
|
|
13
13
|
@use '../../type' as *;
|
|
14
14
|
@use '../../utilities/box-shadow' as *;
|
|
15
15
|
@use '../../utilities/convert' as *;
|
|
@@ -139,7 +139,7 @@
|
|
|
139
139
|
background-color: $field-02;
|
|
140
140
|
|
|
141
141
|
&:hover {
|
|
142
|
-
background-color: $hover-
|
|
142
|
+
background-color: $layer-hover-02;
|
|
143
143
|
}
|
|
144
144
|
}
|
|
145
145
|
|
|
@@ -262,13 +262,13 @@
|
|
|
262
262
|
|
|
263
263
|
&:hover {
|
|
264
264
|
border-color: transparent;
|
|
265
|
-
color: $text-
|
|
265
|
+
color: $text-primary;
|
|
266
266
|
}
|
|
267
267
|
}
|
|
268
268
|
|
|
269
269
|
// V11: Possibly deprecate
|
|
270
270
|
.#{$prefix}--dropdown--light .#{$prefix}--dropdown-link {
|
|
271
|
-
border-top-color: $
|
|
271
|
+
border-top-color: $border-subtle-02;
|
|
272
272
|
}
|
|
273
273
|
|
|
274
274
|
.#{$prefix}--dropdown--sm .#{$prefix}--dropdown-link {
|
|
@@ -50,16 +50,19 @@ $input-label-weight: 400 !default;
|
|
|
50
50
|
@include type-style('label-01');
|
|
51
51
|
|
|
52
52
|
display: inline-block;
|
|
53
|
-
|
|
54
|
-
margin-bottom: $spacing-03;
|
|
55
|
-
}
|
|
56
|
-
|
|
53
|
+
margin-bottom: $spacing-03;
|
|
57
54
|
color: $text-secondary;
|
|
58
55
|
font-weight: $input-label-weight;
|
|
59
56
|
line-height: 1rem;
|
|
60
57
|
vertical-align: baseline;
|
|
61
58
|
}
|
|
62
59
|
|
|
60
|
+
@if enabled('enable-v11-release') {
|
|
61
|
+
.#{$prefix}--label--no-margin {
|
|
62
|
+
margin-bottom: 0;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
63
66
|
.#{$prefix}--label .#{$prefix}--tooltip__trigger {
|
|
64
67
|
// When tooltip trigger is put in form label the trigger button should fit in the size of label
|
|
65
68
|
// https://github.com/IBM/carbon-components-react/issues/115
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
@use '../tag/mixins' as *;
|
|
12
12
|
@use '../../config' as *;
|
|
13
13
|
@use '../../colors' as *;
|
|
14
|
-
@use '../../
|
|
14
|
+
@use '../../theme' as *;
|
|
15
15
|
@use '../../type' as *;
|
|
16
16
|
@use '../../spacing' as *;
|
|
17
17
|
@use '../../motion' as *;
|
|
@@ -158,7 +158,7 @@ $list-box-menu-width: rem(300px);
|
|
|
158
158
|
background-color: $field-02;
|
|
159
159
|
|
|
160
160
|
&:hover {
|
|
161
|
-
background-color: $hover-
|
|
161
|
+
background-color: $layer-hover-02;
|
|
162
162
|
}
|
|
163
163
|
}
|
|
164
164
|
|
|
@@ -169,7 +169,7 @@ $list-box-menu-width: rem(300px);
|
|
|
169
169
|
|
|
170
170
|
// V11: Possibly deprecate
|
|
171
171
|
.#{$prefix}--list-box--light .#{$prefix}--list-box__menu-item__option {
|
|
172
|
-
border-top-color: $
|
|
172
|
+
border-top-color: $border-subtle-02;
|
|
173
173
|
}
|
|
174
174
|
|
|
175
175
|
.#{$prefix}--list-box--light.#{$prefix}--list-box--expanded {
|
|
@@ -561,7 +561,7 @@ $list-box-menu-width: rem(300px);
|
|
|
561
561
|
|
|
562
562
|
// V11: Possibly deprecate
|
|
563
563
|
.#{$prefix}--list-box--light .#{$prefix}--list-box__menu-item:hover {
|
|
564
|
-
background-color: $hover-
|
|
564
|
+
background-color: $layer-hover-02;
|
|
565
565
|
}
|
|
566
566
|
|
|
567
567
|
.#{$prefix}--list-box--sm .#{$prefix}--list-box__menu-item {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
@use '../../breakpoint' as *;
|
|
9
9
|
@use '../../colors' as *;
|
|
10
10
|
@use '../../config' as *;
|
|
11
|
-
@use '../../feature-flags'
|
|
11
|
+
@use '../../feature-flags';
|
|
12
12
|
@use '../../motion' as *;
|
|
13
13
|
@use '../../spacing' as *;
|
|
14
14
|
@use '../../theme' as *;
|
|
@@ -200,7 +200,7 @@
|
|
|
200
200
|
padding: rem(15px) 0;
|
|
201
201
|
}
|
|
202
202
|
|
|
203
|
-
@if feature-
|
|
203
|
+
@if feature-flags.enabled('enable-v11-release') {
|
|
204
204
|
.#{$prefix}--inline-notification__content {
|
|
205
205
|
@include type-style('body-short-01');
|
|
206
206
|
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
@use '../../breakpoint' as *;
|
|
11
11
|
@use '../../colors' as *;
|
|
12
12
|
@use '../../config' as *;
|
|
13
|
-
@use '../../feature-flags'
|
|
13
|
+
@use '../../feature-flags';
|
|
14
14
|
@use '../../motion' as *;
|
|
15
15
|
@use '../../spacing' as *;
|
|
16
16
|
@use '../../theme' as *;
|
|
@@ -151,7 +151,7 @@
|
|
|
151
151
|
margin-right: $spacing-05;
|
|
152
152
|
}
|
|
153
153
|
|
|
154
|
-
@if feature-
|
|
154
|
+
@if feature-flags.enabled('enable-v11-release') {
|
|
155
155
|
.#{$prefix}--toast-notification__content {
|
|
156
156
|
@include type-style('body-short-01');
|
|
157
157
|
|
|
@@ -210,7 +210,7 @@
|
|
|
210
210
|
fill: $icon-primary;
|
|
211
211
|
}
|
|
212
212
|
|
|
213
|
-
@if not feature-
|
|
213
|
+
@if not feature-flags.enabled('enable-v11-release') {
|
|
214
214
|
.#{$prefix}--toast-notification__title {
|
|
215
215
|
@include type-style('productive-heading-01');
|
|
216
216
|
|