@carbon/styles 0.14.0 → 0.15.1

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 (55) hide show
  1. package/package.json +8 -8
  2. package/scss/_motion.scss +7 -36
  3. package/scss/_reset.scss +1 -1
  4. package/scss/components/accordion/_accordion.scss +4 -2
  5. package/scss/components/aspect-ratio/_aspect-ratio.scss +5 -4
  6. package/scss/components/breadcrumb/_breadcrumb.scss +1 -1
  7. package/scss/components/button/_tokens.scss +2 -2
  8. package/scss/components/checkbox/_checkbox.scss +1 -1
  9. package/scss/components/code-snippet/_code-snippet.scss +3 -3
  10. package/scss/components/content-switcher/_content-switcher.scss +5 -1
  11. package/scss/components/copy-button/_copy-button.scss +1 -1
  12. package/scss/components/data-table/_data-table.scss +4 -4
  13. package/scss/components/data-table/action/_data-table-action.scss +3 -3
  14. package/scss/components/data-table/sort/_data-table-sort.scss +1 -1
  15. package/scss/components/date-picker/_flatpickr.scss +27 -20
  16. package/scss/components/dropdown/_dropdown.scss +3 -3
  17. package/scss/components/file-uploader/_file-uploader.scss +4 -4
  18. package/scss/components/form/_form.scss +2 -2
  19. package/scss/components/link/_link.scss +3 -3
  20. package/scss/components/list/_list.scss +2 -2
  21. package/scss/components/list-box/_list-box.scss +3 -3
  22. package/scss/components/loading/_loading.scss +3 -0
  23. package/scss/components/menu/_menu.scss +1 -1
  24. package/scss/components/modal/_modal.scss +3 -3
  25. package/scss/components/notification/_actionable-notification.scss +2 -2
  26. package/scss/components/notification/_inline-notification.scss +3 -3
  27. package/scss/components/notification/_toast-notification.scss +5 -5
  28. package/scss/components/number-input/_number-input.scss +29 -18
  29. package/scss/components/overflow-menu/_overflow-menu.scss +5 -2
  30. package/scss/components/pagination/_index.scss +3 -0
  31. package/scss/components/pagination/_pagination.scss +1 -0
  32. package/scss/components/pagination/_unstable_pagination.scss +173 -0
  33. package/scss/components/pagination-nav/_pagination-nav.scss +2 -2
  34. package/scss/components/popover/_popover.scss +27 -12
  35. package/scss/components/progress-bar/_progress-bar.scss +9 -1
  36. package/scss/components/progress-indicator/_progress-indicator.scss +12 -14
  37. package/scss/components/search/_search.scss +14 -17
  38. package/scss/components/select/_select.scss +8 -2
  39. package/scss/components/slider/_slider.scss +6 -4
  40. package/scss/components/structured-list/_structured-list.scss +2 -3
  41. package/scss/components/tabs/_tabs.scss +108 -55
  42. package/scss/components/tag/_tag.scss +1 -0
  43. package/scss/components/text-area/_text-area.scss +2 -2
  44. package/scss/components/text-input/_text-input.scss +18 -4
  45. package/scss/components/tile/_tile.scss +2 -2
  46. package/scss/components/toggle/_toggle.scss +3 -3
  47. package/scss/components/toggletip/_toggletip.scss +1 -1
  48. package/scss/components/tooltip/_tooltip.scss +3 -3
  49. package/scss/components/treeview/_treeview.scss +1 -1
  50. package/scss/components/ui-shell/header/_header.scss +3 -3
  51. package/scss/components/ui-shell/side-nav/_side-nav.scss +7 -6
  52. package/scss/components/ui-shell/switcher/_switcher.scss +1 -1
  53. package/scss/fonts/_src.scss +1 -1
  54. package/scss/utilities/_keyframes.scss +10 -0
  55. package/scss/utilities/_tooltip.scss +3 -1
@@ -98,7 +98,7 @@
98
98
  }
99
99
 
100
100
  .#{$prefix}--menu-option__label {
101
- @include type-style('body-short-01');
101
+ @include type-style('body-compact-01');
102
102
 
103
103
  overflow: hidden;
104
104
  flex-grow: 1;
@@ -110,7 +110,7 @@
110
110
  // Modal content
111
111
  // -----------------------------
112
112
  .#{$prefix}--modal-content {
113
- @include type-style('body-long-01');
113
+ @include type-style('body-01');
114
114
 
115
115
  position: relative;
116
116
  // Required to accommodate focus outline's negative offset:
@@ -135,7 +135,7 @@
135
135
  .#{$prefix}--modal-content p,
136
136
  .#{$prefix}--modal-content__regular-content {
137
137
  padding-right: 20%;
138
- @include type-style('body-long-01');
138
+ @include type-style('body-01');
139
139
  }
140
140
 
141
141
  //TO-DO: remove .#{$prefix}--modal-content--with-form in v11 since hasForm has been deprecated\
@@ -164,7 +164,7 @@
164
164
  }
165
165
 
166
166
  .#{$prefix}--modal-header__heading {
167
- @include type-style('productive-heading-03');
167
+ @include type-style('heading-03');
168
168
 
169
169
  color: $text-primary;
170
170
  }
@@ -61,7 +61,7 @@
61
61
  min-width: rem(288px);
62
62
  max-width: rem(288px);
63
63
  flex-wrap: wrap;
64
- box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.2);
64
+ box-shadow: 0 2px 6px 0 rgb(0 0 0 / 20%);
65
65
  }
66
66
 
67
67
  .#{$prefix}--actionable-notification:not(.#{$prefix}--actionable-notification--low-contrast)
@@ -221,7 +221,7 @@
221
221
  }
222
222
 
223
223
  .#{$prefix}--actionable-notification__content {
224
- @include type-style('body-short-01');
224
+ @include type-style('body-compact-01');
225
225
 
226
226
  word-break: break-word;
227
227
  }
@@ -202,19 +202,19 @@
202
202
 
203
203
  @if feature-flags.enabled('enable-v11-release') {
204
204
  .#{$prefix}--inline-notification__content {
205
- @include type-style('body-short-01');
205
+ @include type-style('body-compact-01');
206
206
 
207
207
  word-break: break-word;
208
208
  }
209
209
  } @else {
210
210
  .#{$prefix}--inline-notification__title {
211
- @include type-style('productive-heading-01');
211
+ @include type-style('heading-compact-01');
212
212
 
213
213
  margin: 0 $spacing-02 0 0;
214
214
  }
215
215
 
216
216
  .#{$prefix}--inline-notification__subtitle {
217
- @include type-style('body-short-01');
217
+ @include type-style('body-compact-01');
218
218
 
219
219
  word-break: break-word;
220
220
  }
@@ -153,7 +153,7 @@
153
153
 
154
154
  @if feature-flags.enabled('enable-v11-release') {
155
155
  .#{$prefix}--toast-notification__content {
156
- @include type-style('body-short-01');
156
+ @include type-style('body-compact-01');
157
157
 
158
158
  margin-top: $spacing-05;
159
159
  margin-right: $spacing-05;
@@ -187,7 +187,7 @@
187
187
  margin-left: auto;
188
188
  background-color: transparent;
189
189
  cursor: pointer;
190
- transition: outline $transition--base, background-color $transition--base;
190
+ transition: outline $transition-base, background-color $transition-base;
191
191
 
192
192
  &:focus {
193
193
  outline: 2px solid $focus-inverse;
@@ -212,7 +212,7 @@
212
212
 
213
213
  @if not feature-flags.enabled('enable-v11-release') {
214
214
  .#{$prefix}--toast-notification__title {
215
- @include type-style('productive-heading-01');
215
+ @include type-style('heading-compact-01');
216
216
 
217
217
  margin-top: $spacing-05;
218
218
  font-weight: 600;
@@ -220,7 +220,7 @@
220
220
  }
221
221
 
222
222
  .#{$prefix}--toast-notification__subtitle {
223
- @include type-style('body-short-01');
223
+ @include type-style('body-compact-01');
224
224
 
225
225
  margin-top: 0;
226
226
  margin-bottom: $spacing-05;
@@ -234,7 +234,7 @@
234
234
  }
235
235
 
236
236
  .#{$prefix}--toast-notification__caption {
237
- @include type-style('body-short-01');
237
+ @include type-style('body-compact-01');
238
238
 
239
239
  padding-top: $spacing-03;
240
240
  margin-bottom: $spacing-05;
@@ -16,6 +16,7 @@
16
16
  @use '../../utilities/high-contrast-mode' as *;
17
17
  @use '../../utilities/focus-outline' as *;
18
18
  @use '../../utilities/convert' as *;
19
+ @use '../../utilities/z-index' as *;
19
20
 
20
21
  /// Number input styles
21
22
  /// @access public
@@ -31,7 +32,7 @@
31
32
  }
32
33
 
33
34
  .#{$prefix}--number input[type='number'] {
34
- @include type-style('body-short-01');
35
+ @include type-style('code-01');
35
36
  @include focus-outline('reset');
36
37
 
37
38
  display: inline-flex;
@@ -88,8 +89,7 @@
88
89
  padding-right: rem(112px);
89
90
  }
90
91
 
91
- .#{$prefix}--number input[type='number']:disabled,
92
- .#{$prefix}--number--readonly input[type='number'] {
92
+ .#{$prefix}--number input[type='number']:disabled {
93
93
  border-bottom-color: transparent;
94
94
  background-color: $field;
95
95
  color: $text-disabled;
@@ -301,10 +301,6 @@
301
301
  background-color: transparent;
302
302
  }
303
303
 
304
- .#{$prefix}--number--readonly .#{$prefix}--number__control-btn {
305
- display: none;
306
- }
307
-
308
304
  .#{$prefix}--number__invalid {
309
305
  position: absolute;
310
306
  right: rem(96px);
@@ -368,10 +364,7 @@
368
364
  }
369
365
 
370
366
  // V11: Possibly deprecate
371
- .#{$prefix}--number--light input[type='number']:disabled,
372
- .#{$prefix}--number--light
373
- .#{$prefix}--number--readonly
374
- input[type='number'] {
367
+ .#{$prefix}--number--light input[type='number']:disabled {
375
368
  background-color: $field-02;
376
369
  }
377
370
 
@@ -381,18 +374,22 @@
381
374
  background-color: $field-02;
382
375
  }
383
376
 
384
- // V11: Possibly deprecate
385
- .#{$prefix}--number--light .#{$prefix}--number__control-btn:hover,
386
- .#{$prefix}--number--light .#{$prefix}--number__control-btn:hover::before,
387
- .#{$prefix}--number--light .#{$prefix}--number__control-btn:hover::after {
388
- background-color: $layer-hover-02;
389
- }
390
-
391
377
  .#{$prefix}--number--light .#{$prefix}--number__control-btn:focus::before,
392
378
  .#{$prefix}--number--light .#{$prefix}--number__control-btn:focus::after {
393
379
  background-color: transparent;
394
380
  }
395
381
 
382
+ // V11: Possibly deprecate
383
+ // We include `:not(:focus)` here because the pseudo elements will overlap the
384
+ // focus outline on the button if we set their background-color on focus
385
+ .#{$prefix}--number--light .#{$prefix}--number__control-btn:hover,
386
+ .#{$prefix}--number--light
387
+ .#{$prefix}--number__control-btn:not(:focus):hover::before,
388
+ .#{$prefix}--number--light
389
+ .#{$prefix}--number__control-btn:not(:focus):hover::after {
390
+ background-color: $layer-hover-02;
391
+ }
392
+
396
393
  // Size Variant styles
397
394
  // TODO V11: Remove xl selector
398
395
  .#{$prefix}--number--xl input[type='number'],
@@ -452,6 +449,20 @@
452
449
  right: rem(16px);
453
450
  }
454
451
 
452
+ // Readonly
453
+ .#{$prefix}--number--readonly input[type='number'] {
454
+ background: transparent;
455
+ }
456
+
457
+ .#{$prefix}--number--readonly .#{$prefix}--number__controls {
458
+ display: none;
459
+ }
460
+
461
+ .#{$prefix}--number__readonly-icon {
462
+ position: absolute;
463
+ right: rem(16px);
464
+ }
465
+
455
466
  // Skeleton State
456
467
  .#{$prefix}--number.#{$prefix}--skeleton {
457
468
  @include skeleton;
@@ -120,6 +120,7 @@
120
120
 
121
121
  .#{$prefix}--overflow-menu-options--light {
122
122
  background-color: $field-02;
123
+
123
124
  &::after {
124
125
  background-color: $field-02;
125
126
  }
@@ -129,7 +130,7 @@
129
130
  background-color: $field-02;
130
131
  }
131
132
 
132
- .#{$prefix}--overflow-menu-options[data-floating-menu-direction='bottom']::after {
133
+ .#{$prefix}--overflow-menu-options[data-floating-menu-direction='bottom']:not(.#{$prefix}--breadcrumb-menu-options)::after {
133
134
  top: rem(-3px);
134
135
  left: 0;
135
136
  width: rem(40px);
@@ -162,6 +163,7 @@
162
163
  &[data-floating-menu-direction='top']::after {
163
164
  width: rem(32px);
164
165
  }
166
+
165
167
  &[data-floating-menu-direction='left']::after,
166
168
  &[data-floating-menu-direction='right']::after {
167
169
  height: rem(32px);
@@ -175,6 +177,7 @@
175
177
  &[data-floating-menu-direction='top']::after {
176
178
  width: rem(48px);
177
179
  }
180
+
178
181
  &[data-floating-menu-direction='left']::after,
179
182
  &[data-floating-menu-direction='right']::after {
180
183
  height: rem(48px);
@@ -242,7 +245,7 @@
242
245
  }
243
246
 
244
247
  .#{$prefix}--overflow-menu-options__btn {
245
- @include type-style('body-short-01');
248
+ @include type-style('body-compact-01');
246
249
  @include focus-outline('reset');
247
250
 
248
251
  display: inline-flex;
@@ -6,6 +6,9 @@
6
6
  //
7
7
 
8
8
  @forward 'pagination';
9
+ @forward 'unstable_pagination';
9
10
  @use 'pagination';
11
+ @use 'unstable_pagination';
10
12
 
11
13
  @include pagination.pagination;
14
+ @include unstable_pagination.unstable_pagination;
@@ -15,6 +15,7 @@
15
15
  @use '../../utilities/convert' as *;
16
16
  @use '../../utilities/focus-outline' as *;
17
17
  @use '../../utilities/high-contrast-mode' as *;
18
+ @use '../select';
18
19
 
19
20
  /// Pagination styles
20
21
  /// @access public
@@ -0,0 +1,173 @@
1
+ //
2
+ // Copyright IBM Corp. 2016, 2020
3
+ //
4
+ // This source code is licensed under the Apache-2.0 license found in the
5
+ // LICENSE file in the root directory of this source tree.
6
+ //
7
+
8
+ @use '../../breakpoint' as *;
9
+ @use '../../config' as *;
10
+ @use '../../motion' as *;
11
+ @use '../../spacing' as *;
12
+ @use '../../theme' as *;
13
+ @use '../../type' as *;
14
+ @use '../../utilities/component-reset';
15
+ @use '../../utilities/convert' as *;
16
+ @use '../../utilities/focus-outline' as *;
17
+ @use '../select';
18
+
19
+ /// Unstable pagination styles
20
+ /// @access private
21
+ /// @group pagination
22
+ @mixin unstable_pagination {
23
+ .#{$prefix}--unstable-pagination {
24
+ @include component-reset.reset;
25
+ @include type-style('body-compact-01');
26
+
27
+ display: flex;
28
+ width: 100%;
29
+ min-height: rem(40px);
30
+ align-items: center;
31
+ justify-content: space-between;
32
+ border-top: 1px solid $border-subtle;
33
+ border-bottom: 1px solid transparent;
34
+ background-color: $layer;
35
+ }
36
+
37
+ .#{$prefix}--unstable-pagination__text {
38
+ @include breakpoint('md') {
39
+ display: inline-block;
40
+ }
41
+
42
+ margin: 0 $spacing-05;
43
+ color: $text-secondary;
44
+ }
45
+
46
+ .#{$prefix}--unstable-pagination__left,
47
+ .#{$prefix}--unstable-pagination__right {
48
+ display: flex;
49
+ height: 100%;
50
+ align-items: center;
51
+ }
52
+
53
+ .#{$prefix}--unstable-pagination__left {
54
+ padding: 0 $spacing-05 0 0;
55
+ }
56
+
57
+ .#{$prefix}--unstable-pagination__left > .#{$prefix}--form-item,
58
+ .#{$prefix}--unstable-pagination__right > .#{$prefix}--form-item {
59
+ height: 100%;
60
+ }
61
+
62
+ .#{$prefix}--unstable-pagination__left
63
+ .#{$prefix}--unstable-pagination__text {
64
+ margin-right: rem(1px);
65
+ }
66
+
67
+ .#{$prefix}--unstable-pagination__right
68
+ .#{$prefix}--unstable-pagination__text {
69
+ margin-right: $spacing-05;
70
+ margin-left: rem(1px);
71
+ }
72
+
73
+ .#{$prefix}--unstable-pagination__button {
74
+ @include component-reset.reset;
75
+
76
+ display: flex;
77
+ width: rem(40px);
78
+ height: rem(40px);
79
+ min-height: rem(32px);
80
+ align-items: center;
81
+ justify-content: center;
82
+ border: none;
83
+ border-left: 1px solid $border-subtle;
84
+ margin: 0;
85
+ background: none;
86
+ color: $icon-primary;
87
+ cursor: pointer;
88
+ fill: $icon-primary;
89
+ transition: outline $duration-fast-02 motion(standard, productive),
90
+ background-color $duration-fast-02 motion(standard, productive);
91
+ }
92
+
93
+ // Unset height/width set by icon-only button:
94
+ .#{$prefix}--unstable-pagination__button .#{$prefix}--btn__icon {
95
+ width: initial;
96
+ height: initial;
97
+ }
98
+
99
+ .#{$prefix}--unstable-pagination__button.#{$prefix}--btn--icon-only.#{$prefix}--tooltip__trigger:focus {
100
+ @include focus-outline('outline');
101
+ }
102
+
103
+ .#{$prefix}--unstable-pagination__button:hover {
104
+ background: $layer-hover;
105
+ color: $icon-primary;
106
+ }
107
+
108
+ .#{$prefix}--unstable-pagination__button--no-index {
109
+ cursor: not-allowed;
110
+ fill: $icon-disabled;
111
+ }
112
+
113
+ .#{$prefix}--unstable-pagination__button.#{$prefix}--btn:disabled {
114
+ border-color: $border-subtle;
115
+ background: transparent;
116
+ }
117
+
118
+ .#{$prefix}--unstable-pagination__button:disabled:hover,
119
+ .#{$prefix}--unstable-pagination__button--no-index:hover {
120
+ background: transparent;
121
+ cursor: not-allowed;
122
+ fill: $icon-disabled;
123
+ }
124
+
125
+ .#{$prefix}--unstable-pagination__page-selector,
126
+ .#{$prefix}--unstable-pagination__page-sizer {
127
+ height: 100%;
128
+ align-items: center;
129
+ }
130
+
131
+ .#{$prefix}--unstable-pagination__page-selector
132
+ .#{$prefix}--select-input--inline__wrapper,
133
+ .#{$prefix}--unstable-pagination__page-sizer
134
+ .#{$prefix}--select-input--inline__wrapper {
135
+ display: flex;
136
+ height: 100%;
137
+ }
138
+
139
+ .#{$prefix}--unstable-pagination__page-selector .#{$prefix}--select-input,
140
+ .#{$prefix}--unstable-pagination__page-sizer .#{$prefix}--select-input {
141
+ @include type-style('body-short-01');
142
+
143
+ width: auto;
144
+ min-width: auto;
145
+ height: 100%;
146
+ padding: 0 2.25rem 0 $spacing-05;
147
+ line-height: rem(40px);
148
+ }
149
+
150
+ .#{$prefix}--unstable-pagination__page-selector
151
+ .#{$prefix}--select-input:hover,
152
+ .#{$prefix}--unstable-pagination__page-sizer .#{$prefix}--select-input:hover {
153
+ background: $layer-hover;
154
+ }
155
+
156
+ .#{$prefix}--unstable-pagination__page-selector .#{$prefix}--select__arrow,
157
+ .#{$prefix}--unstable-pagination__page-sizer .#{$prefix}--select__arrow {
158
+ top: 50%;
159
+ transform: translateY(-50%);
160
+
161
+ @include breakpoint('md') {
162
+ right: $spacing-05;
163
+ }
164
+ }
165
+
166
+ .#{$prefix}--unstable-pagination__page-selector {
167
+ border-left: 1px solid $border-subtle;
168
+ }
169
+
170
+ .#{$prefix}--unstable-pagination__page-sizer {
171
+ border-right: 1px solid $border-subtle;
172
+ }
173
+ }
@@ -46,7 +46,7 @@
46
46
  ) {
47
47
  .#{$prefix}--pagination-nav {
48
48
  @include reset;
49
- @include type-style('body-short-01');
49
+ @include type-style('body-compact-01');
50
50
 
51
51
  line-height: 0;
52
52
  }
@@ -70,7 +70,7 @@
70
70
  }
71
71
 
72
72
  .#{$prefix}--pagination-nav__page {
73
- @include type-style('body-short-01');
73
+ @include type-style('body-compact-01');
74
74
  @include button-reset.reset($width: false);
75
75
 
76
76
  position: relative;
@@ -185,13 +185,16 @@ $popover-caret-height: custom-property.get-var(
185
185
  .#{$prefix}--popover--bottom-left .#{$prefix}--popover-content {
186
186
  bottom: 0;
187
187
  left: 0;
188
- transform: translate(0, calc(100% + $popover-offset));
188
+ transform: translate(
189
+ calc(-1 * $popover-offset),
190
+ calc(100% + $popover-offset)
191
+ );
189
192
  }
190
193
 
191
194
  .#{$prefix}--popover--bottom-right .#{$prefix}--popover-content {
192
195
  right: 0;
193
196
  bottom: 0;
194
- transform: translate(0, calc(100% + $popover-offset));
197
+ transform: translate($popover-offset, calc(100% + $popover-offset));
195
198
  }
196
199
 
197
200
  // Popover hover area placement
@@ -231,13 +234,16 @@ $popover-caret-height: custom-property.get-var(
231
234
  .#{$prefix}--popover--top-left .#{$prefix}--popover-content {
232
235
  top: 0;
233
236
  left: 0;
234
- transform: translate(0, calc(-100% - $popover-offset));
237
+ transform: translate(
238
+ calc(-1 * $popover-offset),
239
+ calc(-100% - $popover-offset)
240
+ );
235
241
  }
236
242
 
237
243
  .#{$prefix}--popover--top-right .#{$prefix}--popover-content {
238
244
  top: 0;
239
245
  right: 0;
240
- transform: translate(0, calc(-100% - $popover-offset));
246
+ transform: translate($popover-offset, calc(-100% - $popover-offset));
241
247
  }
242
248
 
243
249
  // Popover hover area placement
@@ -277,15 +283,18 @@ $popover-caret-height: custom-property.get-var(
277
283
  }
278
284
 
279
285
  .#{$prefix}--popover--right-top .#{$prefix}--popover-content {
280
- top: 0;
286
+ top: 50%;
281
287
  left: 100%;
282
- transform: translate($popover-offset, 0);
288
+ transform: translate(
289
+ $popover-offset,
290
+ calc(0.5 * $popover-offset * -1 - 16px)
291
+ );
283
292
  }
284
293
 
285
294
  .#{$prefix}--popover--right-bottom .#{$prefix}--popover-content {
286
- bottom: 0;
295
+ bottom: 50%;
287
296
  left: 100%;
288
- transform: translate($popover-offset, 0);
297
+ transform: translate($popover-offset, calc(0.5 * $popover-offset + 16px));
289
298
  }
290
299
 
291
300
  // Popover hover area placement
@@ -325,19 +334,25 @@ $popover-caret-height: custom-property.get-var(
325
334
  }
326
335
 
327
336
  .#{$prefix}--popover--left-top .#{$prefix}--popover-content {
328
- top: 0;
337
+ top: -50%;
329
338
  right: 100%;
330
339
  // Add in 0.1px to prevent rounding errors where the content is
331
340
  // moved farther than the caret
332
- transform: translate(calc(-1 * $popover-offset + 0.1px), 0);
341
+ transform: translate(
342
+ calc(-1 * $popover-offset),
343
+ calc(-1 * 0.5 * $popover-offset + 16px)
344
+ );
333
345
  }
334
346
 
335
347
  .#{$prefix}--popover--left-bottom .#{$prefix}--popover-content {
336
348
  right: 100%;
337
- bottom: 0;
349
+ bottom: -50%;
338
350
  // Add in 0.1px to prevent rounding errors where the content is
339
351
  // moved farther than the caret
340
- transform: translate(calc(-1 * $popover-offset + 0.1px), 0);
352
+ transform: translate(
353
+ calc(-1 * $popover-offset),
354
+ calc(0.5 * $popover-offset - 16px)
355
+ );
341
356
  }
342
357
 
343
358
  // Popover hover area placement
@@ -17,7 +17,7 @@
17
17
  /// @group progress-bar
18
18
  @mixin progress-bar {
19
19
  .#{$prefix}--progress-bar__label {
20
- @include type-style('body-short-01');
20
+ @include type-style('body-compact-01');
21
21
 
22
22
  display: block;
23
23
  margin-bottom: $spacing-03;
@@ -31,6 +31,14 @@
31
31
  background-color: $layer;
32
32
  }
33
33
 
34
+ .#{$prefix}--progress-bar--big .#{$prefix}--progress-bar__track {
35
+ height: rem(8px);
36
+ }
37
+
38
+ .#{$prefix}--progress-bar--small .#{$prefix}--progress-bar__track {
39
+ height: rem(4px);
40
+ }
41
+
34
42
  .#{$prefix}--progress-bar__bar {
35
43
  display: block;
36
44
  width: 100%;
@@ -78,7 +78,7 @@ $progress-indicator-bar-width: 1px inset transparent !default;
78
78
  }
79
79
 
80
80
  .#{$prefix}--progress-label {
81
- @include type-style('body-short-01');
81
+ @include type-style('body-compact-01');
82
82
 
83
83
  overflow: hidden;
84
84
  max-width: rem(88px);
@@ -113,8 +113,8 @@ $progress-indicator-bar-width: 1px inset transparent !default;
113
113
  margin-right: 0.75rem;
114
114
  }
115
115
 
116
- .#{$prefix}--progress-label:active {
117
- //is this still a color token??
116
+ .#{$prefix}--progress-step-button:not(.#{$prefix}--progress-step-button--unclickable)
117
+ .#{$prefix}--progress-label:active {
118
118
  box-shadow: 0 rem(3px) 0 0 $background-brand;
119
119
  color: $background-brand;
120
120
  }
@@ -137,7 +137,7 @@ $progress-indicator-bar-width: 1px inset transparent !default;
137
137
 
138
138
  //single line tooltip
139
139
  .#{$prefix}--progress-step .#{$prefix}--tooltip {
140
- @include type-style('body-long-01');
140
+ @include type-style('body-01');
141
141
 
142
142
  display: block;
143
143
  width: rem(125px);
@@ -153,7 +153,7 @@ $progress-indicator-bar-width: 1px inset transparent !default;
153
153
 
154
154
  //multiline tooltip
155
155
  .#{$prefix}--progress-step .#{$prefix}--tooltip_multi {
156
- @include type-style('body-long-01');
156
+ @include type-style('body-01');
157
157
 
158
158
  width: rem(150px);
159
159
  height: auto;
@@ -225,12 +225,6 @@ $progress-indicator-bar-width: 1px inset transparent !default;
225
225
  cursor: pointer;
226
226
  }
227
227
 
228
- .#{$prefix}--progress-step-button:not(.#{$prefix}--progress-step-button--unclickable)
229
- .#{$prefix}--progress-label:active {
230
- box-shadow: 0 rem(3px) 0 0 $interactive;
231
- color: $interactive;
232
- }
233
-
234
228
  //DISABLED STYLING
235
229
  .#{$prefix}--progress-step--disabled {
236
230
  cursor: not-allowed;
@@ -286,12 +280,17 @@ $progress-indicator-bar-width: 1px inset transparent !default;
286
280
  flex-direction: column;
287
281
  }
288
282
 
283
+ .#{$prefix}--progress--vertical,
284
+ .#{$prefix}--progress-text {
285
+ display: flex;
286
+ flex-direction: column;
287
+ }
288
+
289
289
  .#{$prefix}--progress--vertical .#{$prefix}--progress-step,
290
290
  .#{$prefix}--progress--vertical .#{$prefix}--progress-step-button {
291
291
  width: initial;
292
292
  min-width: initial;
293
293
  min-height: 3.625rem;
294
- flex-wrap: wrap;
295
294
  align-content: flex-start;
296
295
  }
297
296
 
@@ -320,8 +319,7 @@ $progress-indicator-bar-width: 1px inset transparent !default;
320
319
  .#{$prefix}--progress--vertical .#{$prefix}--progress-optional {
321
320
  position: static;
322
321
  width: 100%;
323
- margin-top: auto;
324
- margin-left: $spacing-07;
322
+ margin: auto 0;
325
323
  }
326
324
 
327
325
  .#{$prefix}--progress--vertical .#{$prefix}--progress-line {