@carbon/styles 0.13.0 → 0.15.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.
Files changed (62) hide show
  1. package/package.json +8 -8
  2. package/scss/_config.scss +6 -0
  3. package/scss/_grid.scss +3 -1
  4. package/scss/_motion.scss +7 -36
  5. package/scss/_reset.scss +1 -1
  6. package/scss/components/_index.scss +1 -0
  7. package/scss/components/accordion/_accordion.scss +4 -2
  8. package/scss/components/aspect-ratio/_aspect-ratio.scss +73 -0
  9. package/scss/components/aspect-ratio/_index.scss +11 -0
  10. package/scss/components/breadcrumb/_breadcrumb.scss +1 -1
  11. package/scss/components/button/_button.scss +4 -3
  12. package/scss/components/button/_mixins.scss +2 -1
  13. package/scss/components/button/_tokens.scss +2 -2
  14. package/scss/components/checkbox/_checkbox.scss +8 -1
  15. package/scss/components/code-snippet/_code-snippet.scss +3 -3
  16. package/scss/components/content-switcher/_content-switcher.scss +33 -2
  17. package/scss/components/copy-button/_copy-button.scss +1 -1
  18. package/scss/components/data-table/_data-table.scss +4 -4
  19. package/scss/components/data-table/action/_data-table-action.scss +99 -29
  20. package/scss/components/data-table/sort/_data-table-sort.scss +1 -1
  21. package/scss/components/date-picker/_flatpickr.scss +27 -20
  22. package/scss/components/dropdown/_dropdown.scss +3 -19
  23. package/scss/components/file-uploader/_file-uploader.scss +4 -4
  24. package/scss/components/form/_form.scss +2 -2
  25. package/scss/components/link/_link.scss +3 -3
  26. package/scss/components/list/_list.scss +2 -2
  27. package/scss/components/list-box/_list-box.scss +13 -29
  28. package/scss/components/loading/_loading.scss +3 -0
  29. package/scss/components/menu/_menu.scss +1 -1
  30. package/scss/components/modal/_modal.scss +90 -98
  31. package/scss/components/notification/_actionable-notification.scss +2 -2
  32. package/scss/components/notification/_inline-notification.scss +3 -3
  33. package/scss/components/notification/_toast-notification.scss +5 -5
  34. package/scss/components/number-input/_number-input.scss +29 -18
  35. package/scss/components/overflow-menu/_overflow-menu.scss +4 -1
  36. package/scss/components/pagination/_index.scss +3 -0
  37. package/scss/components/pagination/_pagination.scss +13 -6
  38. package/scss/components/pagination/_unstable_pagination.scss +173 -0
  39. package/scss/components/pagination-nav/_pagination-nav.scss +2 -2
  40. package/scss/components/popover/_popover.scss +27 -12
  41. package/scss/components/progress-bar/_progress-bar.scss +9 -1
  42. package/scss/components/progress-indicator/_progress-indicator.scss +12 -14
  43. package/scss/components/radio-button/_radio-button.scss +3 -2
  44. package/scss/components/search/_search.scss +14 -17
  45. package/scss/components/select/_select.scss +8 -2
  46. package/scss/components/slider/_slider.scss +6 -4
  47. package/scss/components/structured-list/_structured-list.scss +2 -3
  48. package/scss/components/tabs/_tabs.scss +3 -3
  49. package/scss/components/tag/_tag.scss +1 -0
  50. package/scss/components/text-area/_text-area.scss +8 -2
  51. package/scss/components/text-input/_text-input.scss +1 -1
  52. package/scss/components/tile/_tile.scss +2 -2
  53. package/scss/components/toggle/_toggle.scss +3 -3
  54. package/scss/components/toggletip/_toggletip.scss +1 -1
  55. package/scss/components/tooltip/_tooltip.scss +3 -3
  56. package/scss/components/treeview/_treeview.scss +1 -1
  57. package/scss/components/ui-shell/header/_header.scss +3 -3
  58. package/scss/components/ui-shell/side-nav/_side-nav.scss +7 -6
  59. package/scss/components/ui-shell/switcher/_switcher.scss +1 -1
  60. package/scss/fonts/_src.scss +1 -1
  61. package/scss/utilities/_keyframes.scss +10 -0
  62. package/scss/utilities/_tooltip.scss +3 -1
@@ -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
  //-------------------------------------------------
@@ -70,7 +77,7 @@
70
77
  height: $spacing-09;
71
78
  box-shadow: none;
72
79
  cursor: pointer;
73
- transition: width $transition--expansion $standard-easing,
80
+ transition: width $transition-expansion $standard-easing,
74
81
  background-color $duration-fast-02 motion(entrance, productive);
75
82
 
76
83
  &:hover {
@@ -78,6 +85,10 @@
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
94
  cursor: pointer;
@@ -89,21 +100,6 @@
89
100
  padding: 0;
90
101
  }
91
102
 
92
- .#{$prefix}--toolbar-search-container-expandable
93
- .#{$prefix}--search-magnifier-icon {
94
- left: 0;
95
- width: $spacing-09;
96
- height: $spacing-09;
97
- padding: $spacing-05;
98
- }
99
-
100
- .#{$prefix}--toolbar-search-container-expandable.#{$prefix}--search--disabled
101
- .#{$prefix}--search-magnifier-icon {
102
- background-color: $layer;
103
- cursor: not-allowed;
104
- transition: background-color none;
105
- }
106
-
107
103
  .#{$prefix}--toolbar-search-container-disabled .#{$prefix}--search-input {
108
104
  cursor: not-allowed;
109
105
  }
@@ -130,6 +126,68 @@
130
126
  background-color: $focus;
131
127
  }
132
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
+
133
191
  //-------------------------------------------------
134
192
  //ACTIVE SEARCH - DEFAULT TOOLBAR
135
193
  //-------------------------------------------------
@@ -162,17 +220,6 @@
162
220
  background-color: $field-hover;
163
221
  }
164
222
 
165
- .#{$prefix}--toolbar-search-container-active
166
- .#{$prefix}--search-magnifier-icon:focus,
167
- .#{$prefix}--toolbar-search-container-active
168
- .#{$prefix}--search-magnifier-icon:active,
169
- .#{$prefix}--toolbar-search-container-active
170
- .#{$prefix}--search-magnifier-icon:hover {
171
- border: none;
172
- background-color: transparent;
173
- outline: none;
174
- }
175
-
176
223
  //-------------------------------------------------
177
224
  //SEARCH CLOSE BUTTON
178
225
  //-------------------------------------------------
@@ -429,7 +476,7 @@
429
476
 
430
477
  .#{$prefix}--btn--primary.#{$prefix}--batch-summary__cancel:hover::before {
431
478
  opacity: 0;
432
- transition: opacity $transition--base $standard-easing;
479
+ transition: opacity $transition-base $standard-easing;
433
480
  }
434
481
 
435
482
  // cancel btn
@@ -449,7 +496,7 @@
449
496
  }
450
497
 
451
498
  .#{$prefix}--batch-summary__para {
452
- @include type-style('body-short-01');
499
+ @include type-style('body-compact-01');
453
500
  }
454
501
 
455
502
  //-------------------------------------------------
@@ -459,6 +506,7 @@
459
506
  .#{$prefix}--table-toolbar--small,
460
507
  .#{$prefix}--table-toolbar--sm {
461
508
  height: rem(32px);
509
+ min-height: rem(32px);
462
510
 
463
511
  .#{$prefix}--toolbar-search-container-expandable,
464
512
  .#{$prefix}--toolbar-search-container-persistent {
@@ -534,6 +582,22 @@
534
582
 
535
583
  background-color: transparent;
536
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
+ }
537
601
  }
538
602
 
539
603
  .#{$prefix}--search--disabled .#{$prefix}--search-magnifier-icon:hover {
@@ -588,4 +652,10 @@
588
652
  overflow: hidden;
589
653
  height: rem(32px);
590
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
+ }
591
661
  }
@@ -181,7 +181,7 @@
181
181
  fill: $icon-primary;
182
182
  opacity: 1;
183
183
  transform: rotate(0);
184
- transition: transform $transition--base $standard-easing;
184
+ transition: transform $transition-base $standard-easing;
185
185
  }
186
186
 
187
187
  //----------------------------------------------------------------------------
@@ -16,66 +16,73 @@
16
16
 
17
17
  @use '../button/tokens' as *;
18
18
 
19
- @keyframes fpFadeInDown {
19
+ @keyframes fp-fade-in-down {
20
20
  from {
21
21
  opacity: 0;
22
22
  transform: translate3d(0, -20px, 0);
23
23
  }
24
+
24
25
  to {
25
26
  opacity: 1;
26
27
  transform: translate3d(0, 0, 0);
27
28
  }
28
29
  }
29
30
 
30
- @keyframes fpSlideLeft {
31
+ @keyframes fp-slide-left {
31
32
  from {
32
33
  transform: translate3d(0, 0, 0);
33
34
  }
35
+
34
36
  to {
35
37
  transform: translate3d(-100%, 0, 0);
36
38
  }
37
39
  }
38
40
 
39
- @keyframes fpSlideLeftNew {
41
+ @keyframes fp-slide-left-new {
40
42
  from {
41
43
  transform: translate3d(100%, 0, 0);
42
44
  }
45
+
43
46
  to {
44
47
  transform: translate3d(0, 0, 0);
45
48
  }
46
49
  }
47
50
 
48
- @keyframes fpSlideRight {
51
+ @keyframes fp-slide-right {
49
52
  from {
50
53
  transform: translate3d(0, 0, 0);
51
54
  }
55
+
52
56
  to {
53
57
  transform: translate3d(100%, 0, 0);
54
58
  }
55
59
  }
56
60
 
57
- @keyframes fpSlideRightNew {
61
+ @keyframes fp-slide-right-new {
58
62
  from {
59
63
  transform: translate3d(-100%, 0, 0);
60
64
  }
65
+
61
66
  to {
62
67
  transform: translate3d(0, 0, 0);
63
68
  }
64
69
  }
65
70
 
66
- @keyframes fpFadeOut {
71
+ @keyframes fp-fade-out {
67
72
  from {
68
73
  opacity: 1;
69
74
  }
75
+
70
76
  to {
71
77
  opacity: 0;
72
78
  }
73
79
  }
74
80
 
75
- @keyframes fpFadeIn {
81
+ @keyframes fp-fade-in {
76
82
  from {
77
83
  opacity: 0;
78
84
  }
85
+
79
86
  to {
80
87
  opacity: 1;
81
88
  }
@@ -130,7 +137,7 @@
130
137
  }
131
138
 
132
139
  .flatpickr-calendar.animate.open {
133
- animation: fpFadeInDown $duration-fast-02 motion(entrance, productive);
140
+ animation: fp-fade-in-down $duration-fast-02 motion(entrance, productive);
134
141
  }
135
142
 
136
143
  .flatpickr-calendar.inline {
@@ -193,7 +200,7 @@
193
200
  }
194
201
 
195
202
  .flatpickr-month {
196
- @include type-style('productive-heading-01');
203
+ @include type-style('heading-compact-01');
197
204
 
198
205
  display: flex;
199
206
  height: rem(40px);
@@ -240,7 +247,7 @@
240
247
  }
241
248
 
242
249
  .flatpickr-current-month {
243
- @include type-style('productive-heading-01');
250
+ @include type-style('heading-compact-01');
244
251
 
245
252
  display: flex;
246
253
  height: rem(28px);
@@ -380,7 +387,7 @@
380
387
  }
381
388
 
382
389
  .flatpickr-weekday {
383
- @include type-style('body-short-01');
390
+ @include type-style('body-compact-01');
384
391
 
385
392
  flex: 1;
386
393
  color: $text-primary;
@@ -392,8 +399,8 @@
392
399
  }
393
400
 
394
401
  .flatpickr-calendar.animate .dayContainer.slideLeft {
395
- animation: fpFadeOut 400ms cubic-bezier(0.23, 1, 0.32, 1),
396
- fpSlideLeft 400ms cubic-bezier(0.23, 1, 0.32, 1);
402
+ animation: fp-fade-out 400ms cubic-bezier(0.23, 1, 0.32, 1),
403
+ fp-slide-left 400ms cubic-bezier(0.23, 1, 0.32, 1);
397
404
  }
398
405
 
399
406
  .flatpickr-calendar.animate .dayContainer.slideLeft,
@@ -402,23 +409,23 @@
402
409
  }
403
410
 
404
411
  .flatpickr-calendar.animate .dayContainer.slideLeftNew {
405
- animation: fpFadeIn 400ms cubic-bezier(0.23, 1, 0.32, 1),
406
- fpSlideLeft 400ms cubic-bezier(0.23, 1, 0.32, 1);
412
+ animation: fp-fade-in 400ms cubic-bezier(0.23, 1, 0.32, 1),
413
+ fp-slide-left 400ms cubic-bezier(0.23, 1, 0.32, 1);
407
414
  }
408
415
 
409
416
  .flatpickr-calendar.animate .dayContainer.slideRight {
410
- animation: fpFadeOut 400ms cubic-bezier(0.23, 1, 0.32, 1),
411
- fpSlideRight 400ms cubic-bezier(0.23, 1, 0.32, 1);
417
+ animation: fp-fade-out 400ms cubic-bezier(0.23, 1, 0.32, 1),
418
+ fp-slide-right 400ms cubic-bezier(0.23, 1, 0.32, 1);
412
419
  transform: translate3d(100%, 0, 0);
413
420
  }
414
421
 
415
422
  .flatpickr-calendar.animate .dayContainer.slideRightNew {
416
- animation: fpFadeIn 400ms cubic-bezier(0.23, 1, 0.32, 1),
417
- fpSlideRightNew 400ms cubic-bezier(0.23, 1, 0.32, 1);
423
+ animation: fp-fade-in 400ms cubic-bezier(0.23, 1, 0.32, 1),
424
+ fp-slide-right-new 400ms cubic-bezier(0.23, 1, 0.32, 1);
418
425
  }
419
426
 
420
427
  .flatpickr-day {
421
- @include type-style('body-short-01');
428
+ @include type-style('body-compact-01');
422
429
 
423
430
  display: flex;
424
431
  width: rem(40px);
@@ -29,7 +29,7 @@
29
29
  grid-template: auto auto / auto min-content;
30
30
 
31
31
  .#{$prefix}--label {
32
- @include type-style('body-short-01');
32
+ @include type-style('body-compact-01');
33
33
  }
34
34
 
35
35
  .#{$prefix}--label,
@@ -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
  }
@@ -171,7 +167,7 @@
171
167
  }
172
168
 
173
169
  .#{$prefix}--dropdown-text {
174
- @include type-style('body-short-01');
170
+ @include type-style('body-compact-01');
175
171
 
176
172
  display: block;
177
173
  overflow: hidden;
@@ -188,7 +184,7 @@
188
184
  @include reset;
189
185
  @include focus-outline('reset');
190
186
  @include box-shadow;
191
- @include type-style('body-short-01');
187
+ @include type-style('body-compact-01');
192
188
 
193
189
  position: absolute;
194
190
  z-index: z('dropdown');
@@ -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
@@ -35,7 +35,7 @@
35
35
  // TODO: sync with type
36
36
  .#{$prefix}--file--label {
37
37
  @include reset;
38
- @include type-style('productive-heading-01');
38
+ @include type-style('heading-compact-01');
39
39
 
40
40
  margin-bottom: $spacing-03;
41
41
  color: $text-primary;
@@ -108,7 +108,7 @@
108
108
 
109
109
  .#{$prefix}--label-description {
110
110
  @include reset;
111
- @include type-style('body-short-01');
111
+ @include type-style('body-compact-01');
112
112
 
113
113
  margin-bottom: $spacing-05;
114
114
  color: $text-secondary;
@@ -161,7 +161,7 @@
161
161
  }
162
162
 
163
163
  .#{$prefix}--file-filename {
164
- @include type-style('body-short-01');
164
+ @include type-style('body-compact-01');
165
165
 
166
166
  overflow: hidden;
167
167
  margin-left: $spacing-05;
@@ -247,7 +247,7 @@
247
247
 
248
248
  // TODO: deprecate
249
249
  .#{$prefix}--file__selected-file--invalid + .#{$prefix}--form-requirement {
250
- @include type-style('caption-01');
250
+ @include type-style('label-01');
251
251
 
252
252
  display: block;
253
253
  overflow: visible;
@@ -34,7 +34,7 @@ $input-label-weight: 400 !default;
34
34
  }
35
35
 
36
36
  .#{$prefix}--form-item {
37
- @include type-style('body-short-01');
37
+ @include type-style('body-compact-01');
38
38
 
39
39
  display: flex;
40
40
  // We specify `auto` as the default value so that the form item does
@@ -161,7 +161,7 @@ $input-label-weight: 400 !default;
161
161
 
162
162
  .#{$prefix}--form-requirement {
163
163
  @include reset;
164
- @include type-style('caption-01');
164
+ @include type-style('label-01');
165
165
 
166
166
  display: none;
167
167
  overflow: hidden;
@@ -30,7 +30,7 @@ $link-focus-text-color: custom-property.get-var(
30
30
  @mixin link {
31
31
  .#{$prefix}--link {
32
32
  @include component-reset.reset;
33
- @include type.type-style('body-short-01');
33
+ @include type.type-style('body-compact-01');
34
34
 
35
35
  display: inline-flex;
36
36
  color: $link-text-color;
@@ -68,7 +68,7 @@ $link-focus-text-color: custom-property.get-var(
68
68
  .#{$prefix}--link--disabled,
69
69
  .#{$prefix}--link--disabled:hover {
70
70
  @include component-reset.reset;
71
- @include type.type-style('body-short-01');
71
+ @include type.type-style('body-compact-01');
72
72
 
73
73
  color: $text-disabled;
74
74
  cursor: not-allowed;
@@ -102,7 +102,7 @@ $link-focus-text-color: custom-property.get-var(
102
102
  }
103
103
 
104
104
  .#{$prefix}--link--lg {
105
- @include type.type-style('body-short-02');
105
+ @include type.type-style('body-compact-02');
106
106
  }
107
107
 
108
108
  .#{$prefix}--link__icon {
@@ -25,14 +25,14 @@
25
25
  .#{$prefix}--list--ordered,
26
26
  .#{$prefix}--list--ordered--native {
27
27
  @include component-reset.reset;
28
- @include type.type-style('body-long-01');
28
+ @include type.type-style('body-01');
29
29
 
30
30
  list-style: none;
31
31
  }
32
32
 
33
33
  .#{$prefix}--list--expressive,
34
34
  .#{$prefix}--list--expressive .#{$prefix}--list--nested {
35
- @include type.type-style('body-long-02');
35
+ @include type.type-style('body-02');
36
36
  }
37
37
 
38
38
  .#{$prefix}--list--ordered--native {
@@ -55,7 +55,7 @@ $list-box-menu-width: rem(300px);
55
55
  grid-template: auto auto / auto auto;
56
56
 
57
57
  .#{$prefix}--label {
58
- @include type-style('body-short-01');
58
+ @include type-style('body-compact-01');
59
59
  }
60
60
 
61
61
  .#{$prefix}--label,
@@ -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);
@@ -114,7 +112,7 @@ $list-box-menu-width: rem(300px);
114
112
 
115
113
  // V11: Possibly deprecate
116
114
  .#{$prefix}--list-box--expanded:hover.#{$prefix}--list-box--light:hover {
117
- background-color: $field-02;
115
+ background-color: $field;
118
116
  }
119
117
 
120
118
  .#{$prefix}--list-box .#{$prefix}--text-input {
@@ -155,21 +153,21 @@ $list-box-menu-width: rem(300px);
155
153
  // V11: Possibly deprecate
156
154
  // Light variation for 'list-box'
157
155
  .#{$prefix}--list-box--light {
158
- background-color: $field-02;
156
+ background-color: $field;
159
157
 
160
158
  &:hover {
161
- background-color: $layer-hover-02;
159
+ background-color: $layer-hover;
162
160
  }
163
161
  }
164
162
 
165
163
  // V11: Possibly deprecate
166
164
  .#{$prefix}--list-box--light .#{$prefix}--list-box__menu {
167
- background: $field-02;
165
+ background: $field;
168
166
  }
169
167
 
170
168
  // V11: Possibly deprecate
171
169
  .#{$prefix}--list-box--light .#{$prefix}--list-box__menu-item__option {
172
- border-top-color: $border-subtle-02;
170
+ border-top-color: $border-subtle;
173
171
  }
174
172
 
175
173
  .#{$prefix}--list-box--light.#{$prefix}--list-box--expanded {
@@ -183,7 +181,7 @@ $list-box-menu-width: rem(300px);
183
181
 
184
182
  // V11: Possibly deprecate
185
183
  .#{$prefix}--list-box--light.#{$prefix}--list-box--disabled {
186
- background-color: $field-02;
184
+ background-color: $field;
187
185
  }
188
186
 
189
187
  .#{$prefix}--list-box--disabled,
@@ -373,7 +371,7 @@ $list-box-menu-width: rem(300px);
373
371
 
374
372
  // Label for a `list-box__field`
375
373
  .#{$prefix}--list-box__label {
376
- @include type-style('body-short-01');
374
+ @include type-style('body-compact-01');
377
375
 
378
376
  overflow: hidden;
379
377
  color: $text-primary;
@@ -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
@@ -541,7 +536,7 @@ $list-box-menu-width: rem(300px);
541
536
 
542
537
  // Descendant of a `list-box__menu` that represents a selection for a control
543
538
  .#{$prefix}--list-box__menu-item {
544
- @include type-style('body-short-01');
539
+ @include type-style('body-compact-01');
545
540
 
546
541
  position: relative;
547
542
  height: rem(40px);
@@ -561,15 +556,13 @@ $list-box-menu-width: rem(300px);
561
556
 
562
557
  // V11: Possibly deprecate
563
558
  .#{$prefix}--list-box--light .#{$prefix}--list-box__menu-item:hover {
564
- background-color: $layer-hover-02;
559
+ background-color: $layer-hover;
565
560
  }
566
561
 
567
562
  .#{$prefix}--list-box--sm .#{$prefix}--list-box__menu-item {
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
  }
@@ -580,8 +573,7 @@ $list-box-menu-width: rem(300px);
580
573
 
581
574
  // V11: Possibly deprecate
582
575
  .#{$prefix}--list-box--light .#{$prefix}--list-box__menu-item:active {
583
- // To Do: What should this variable be?
584
- // background-color: $selected-light-ui;
576
+ background-color: $layer-selected;
585
577
  }
586
578
 
587
579
  .#{$prefix}--list-box--disabled
@@ -653,8 +645,6 @@ $list-box-menu-width: rem(300px);
653
645
  padding-bottom: rem(7px);
654
646
  }
655
647
 
656
- // TODO V11: Remove xl selector
657
- .#{$prefix}--list-box--xl .#{$prefix}--list-box__menu-item__option,
658
648
  .#{$prefix}--list-box--lg .#{$prefix}--list-box__menu-item__option {
659
649
  height: rem(48px);
660
650
  padding-top: rem(15px);
@@ -736,9 +726,8 @@ $list-box-menu-width: rem(300px);
736
726
 
737
727
  // V11: Possibly deprecate
738
728
  .#{$prefix}--list-box--light .#{$prefix}--list-box__menu-item--active {
739
- // To Do: What should this token be?
740
- // border-bottom-color: $selected-light-ui;
741
- // background-color: $selected-light-ui;
729
+ border-bottom-color: $layer-selected;
730
+ background-color: $layer-selected;
742
731
  }
743
732
 
744
733
  .#{$prefix}--list-box__menu-item--active:hover,
@@ -803,11 +792,6 @@ $list-box-menu-width: rem(300px);
803
792
  bottom: 2rem;
804
793
  }
805
794
 
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
795
  .#{$prefix}--list-box--up.#{$prefix}--dropdown--lg
812
796
  .#{$prefix}--list-box__menu,
813
797
  .#{$prefix}--list-box--up.#{$prefix}--list-box--lg