@carbon/styles 1.35.0 → 1.36.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 (75) hide show
  1. package/css/styles.css +67 -46
  2. package/css/styles.min.css +1 -1
  3. package/package.json +6 -6
  4. package/scss/_layout.scss +7 -7
  5. package/scss/components/breadcrumb/_breadcrumb.scss +6 -6
  6. package/scss/components/button/_button.scss +27 -18
  7. package/scss/components/button/_mixins.scss +15 -10
  8. package/scss/components/checkbox/_checkbox.scss +22 -21
  9. package/scss/components/code-snippet/_code-snippet.scss +15 -15
  10. package/scss/components/code-snippet/_mixins.scss +2 -2
  11. package/scss/components/combo-button/_combo-button.scss +6 -6
  12. package/scss/components/contained-list/_contained-list.scss +0 -1
  13. package/scss/components/content-switcher/_content-switcher.scss +19 -19
  14. package/scss/components/copy-button/_copy-button.scss +0 -1
  15. package/scss/components/data-table/_data-table.scss +62 -62
  16. package/scss/components/data-table/_mixins.scss +3 -2
  17. package/scss/components/data-table/action/_data-table-action.scss +28 -28
  18. package/scss/components/data-table/expandable/_data-table-expandable.scss +11 -11
  19. package/scss/components/data-table/skeleton/_data-table-skeleton.scss +7 -7
  20. package/scss/components/data-table/sort/_data-table-sort.scss +13 -13
  21. package/scss/components/date-picker/_date-picker.scss +11 -11
  22. package/scss/components/date-picker/_flatpickr.scss +30 -30
  23. package/scss/components/dropdown/_dropdown.scss +30 -30
  24. package/scss/components/file-uploader/_file-uploader.scss +13 -13
  25. package/scss/components/fluid-combo-box/_fluid-combo-box.scss +4 -4
  26. package/scss/components/fluid-date-picker/_fluid-date-picker.scss +19 -19
  27. package/scss/components/fluid-dropdown/_fluid-dropdown.scss +0 -1
  28. package/scss/components/fluid-list-box/_fluid-list-box.scss +13 -13
  29. package/scss/components/fluid-multiselect/_fluid-multiselect.scss +0 -1
  30. package/scss/components/fluid-number-input/_fluid-number-input.scss +14 -13
  31. package/scss/components/fluid-search/_fluid-search.scss +15 -14
  32. package/scss/components/fluid-select/_fluid-select.scss +9 -8
  33. package/scss/components/fluid-text-area/_fluid-text-area.scss +7 -7
  34. package/scss/components/fluid-text-input/_fluid-text-input.scss +14 -14
  35. package/scss/components/fluid-time-picker/_fluid-time-picker.scss +5 -5
  36. package/scss/components/form/_form.scss +5 -5
  37. package/scss/components/inline-loading/_inline-loading.scss +3 -3
  38. package/scss/components/list/_list.scss +2 -2
  39. package/scss/components/list-box/_list-box.scss +50 -50
  40. package/scss/components/loading/_loading.scss +2 -2
  41. package/scss/components/menu/_menu.scss +2 -2
  42. package/scss/components/menu-button/_menu-button.scss +0 -1
  43. package/scss/components/modal/_modal.scss +32 -10
  44. package/scss/components/multiselect/_multiselect.scss +3 -3
  45. package/scss/components/notification/_actionable-notification.scss +22 -20
  46. package/scss/components/notification/_inline-notification.scss +16 -16
  47. package/scss/components/notification/_toast-notification.scss +8 -8
  48. package/scss/components/number-input/_number-input.scss +36 -35
  49. package/scss/components/overflow-menu/_overflow-menu.scss +30 -30
  50. package/scss/components/pagination/_pagination.scss +17 -17
  51. package/scss/components/pagination/_unstable_pagination.scss +8 -8
  52. package/scss/components/pagination-nav/_pagination-nav.scss +0 -1
  53. package/scss/components/popover/_popover.scss +55 -45
  54. package/scss/components/progress-bar/_progress-bar.scss +6 -6
  55. package/scss/components/progress-indicator/_progress-indicator.scss +21 -21
  56. package/scss/components/radio-button/_radio-button.scss +10 -9
  57. package/scss/components/search/_search.scss +20 -20
  58. package/scss/components/select/_select.scss +8 -8
  59. package/scss/components/skeleton-styles/_skeleton-styles.scss +5 -5
  60. package/scss/components/slider/_slider.scss +15 -14
  61. package/scss/components/structured-list/_structured-list.scss +2 -2
  62. package/scss/components/tabs/_tabs.scss +8 -8
  63. package/scss/components/tag/_tag.scss +11 -11
  64. package/scss/components/text-area/_text-area.scss +4 -4
  65. package/scss/components/text-input/_text-input.scss +17 -17
  66. package/scss/components/time-picker/_time-picker.scss +7 -7
  67. package/scss/components/toggle/_toggle.scss +27 -27
  68. package/scss/components/toggletip/_toggletip.scss +4 -1
  69. package/scss/components/tooltip/_tooltip.scss +7 -7
  70. package/scss/components/treeview/_treeview.scss +9 -9
  71. package/scss/components/ui-shell/header/_header.scss +7 -7
  72. package/scss/components/ui-shell/side-nav/_side-nav.scss +10 -10
  73. package/scss/components/ui-shell/switcher/_switcher.scss +3 -3
  74. package/scss/utilities/_convert.scss +1 -1
  75. package/scss/utilities/_tooltip.scss +36 -20
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": "1.35.0",
4
+ "version": "1.36.0-rc.0",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
7
7
  "type": "git",
@@ -40,11 +40,11 @@
40
40
  "dependencies": {
41
41
  "@carbon/colors": "^11.19.0",
42
42
  "@carbon/feature-flags": "^0.16.0",
43
- "@carbon/grid": "^11.18.0",
44
- "@carbon/layout": "^11.18.0",
43
+ "@carbon/grid": "^11.19.0-rc.0",
44
+ "@carbon/layout": "^11.19.0-rc.0",
45
45
  "@carbon/motion": "^11.15.0",
46
- "@carbon/themes": "^11.23.0",
47
- "@carbon/type": "^11.22.0",
46
+ "@carbon/themes": "^11.24.0-rc.0",
47
+ "@carbon/type": "^11.23.0-rc.0",
48
48
  "@ibm/plex": "6.0.0-next.6"
49
49
  },
50
50
  "devDependencies": {
@@ -65,5 +65,5 @@
65
65
  "scss/**/*.css",
66
66
  "css/**/*.css"
67
67
  ],
68
- "gitHead": "f9ac32a70a209100bb30ed41edc39c596eae7956"
68
+ "gitHead": "d51dfbb8dc951c6f609561a1e2935e8208bf6e30"
69
69
  }
package/scss/_layout.scss CHANGED
@@ -10,18 +10,18 @@
10
10
 
11
11
  @use './config' as *;
12
12
  @use './utilities/custom-property';
13
- @use './utilities/convert' as *;
13
+ @use './utilities/convert';
14
14
  @use './spacing' as *;
15
15
 
16
16
  $layout-tokens: (
17
17
  size: (
18
18
  height: (
19
- xs: rem(24px),
20
- sm: rem(32px),
21
- md: rem(40px),
22
- lg: rem(48px),
23
- xl: rem(64px),
24
- 2xl: rem(80px),
19
+ xs: convert.to-rem(24px),
20
+ sm: convert.to-rem(32px),
21
+ md: convert.to-rem(40px),
22
+ lg: convert.to-rem(48px),
23
+ xl: convert.to-rem(64px),
24
+ 2xl: convert.to-rem(80px),
25
25
  ),
26
26
  ),
27
27
  density: (
@@ -14,7 +14,7 @@
14
14
  @use '../../type' as *;
15
15
  @use '../../layer' as *;
16
16
  @use '../../utilities/component-reset';
17
- @use '../../utilities/convert' as *;
17
+ @use '../../utilities/convert';
18
18
  @use '../../utilities/skeleton' as *;
19
19
 
20
20
  @mixin breadcrumb {
@@ -79,8 +79,8 @@
79
79
  // Overflow Menu overrides
80
80
  .#{$prefix}--breadcrumb-item .#{$prefix}--overflow-menu {
81
81
  position: relative;
82
- width: rem(20px);
83
- height: rem(18px);
82
+ width: convert.to-rem(20px);
83
+ height: convert.to-rem(18px);
84
84
 
85
85
  &:focus {
86
86
  outline: 1px solid $focus;
@@ -94,7 +94,7 @@
94
94
  &::after {
95
95
  position: absolute;
96
96
  bottom: 2px;
97
- width: rem(12px);
97
+ width: convert.to-rem(12px);
98
98
  height: 1px;
99
99
  background: $link-primary-hover;
100
100
  content: '';
@@ -133,7 +133,7 @@
133
133
  outline: none;
134
134
  }
135
135
 
136
- $caret-size: rem(7px);
136
+ $caret-size: convert.to-rem(7px);
137
137
  .#{$prefix}--breadcrumb-menu-options.#{$prefix}--overflow-menu-options::after {
138
138
  top: -$caret-size;
139
139
  left: $caret-size * 2;
@@ -150,7 +150,7 @@
150
150
  .#{$prefix}--breadcrumb.#{$prefix}--skeleton .#{$prefix}--link {
151
151
  @include skeleton;
152
152
 
153
- width: rem(100px);
153
+ width: convert.to-rem(100px);
154
154
  height: 1rem;
155
155
  }
156
156
 
@@ -14,7 +14,7 @@
14
14
  @use '../../theme' as *;
15
15
  @use '../../type' as *;
16
16
  @use '../../layer' as *;
17
- @use '../../utilities/convert' as *;
17
+ @use '../../utilities/convert';
18
18
  @use '../../utilities/focus-outline';
19
19
  @use '../../utilities/high-contrast-mode' as *;
20
20
  @use '../../utilities/skeleton' as *;
@@ -108,12 +108,14 @@
108
108
  transparent,
109
109
  transparent,
110
110
  $link-primary,
111
- $layer-hover,
111
+ $background-hover,
112
112
  currentColor,
113
- $layer-active
113
+ $background-active
114
114
  );
115
115
 
116
- padding-inline-end: calc(layout.density('padding-inline') - rem(1px));
116
+ padding-inline-end: calc(
117
+ layout.density('padding-inline') - convert.to-rem(1px)
118
+ );
117
119
 
118
120
  .#{$prefix}--btn__icon {
119
121
  position: static;
@@ -153,13 +155,15 @@
153
155
  padding: 0;
154
156
  // -1px to compensate for border width
155
157
  padding-block-start: min(
156
- calc((layout.size('height') - rem(16px)) / 2 - rem(1px)),
158
+ calc(
159
+ (layout.size('height') - convert.to-rem(16px)) / 2 - convert.to-rem(1px)
160
+ ),
157
161
  var(--temp-padding-block-max)
158
162
  );
159
163
 
160
164
  > :first-child {
161
- min-width: rem(16px);
162
- margin-block-start: rem(1px);
165
+ min-width: convert.to-rem(16px);
166
+ margin-block-start: convert.to-rem(1px);
163
167
  }
164
168
 
165
169
  .#{$prefix}--btn__icon {
@@ -273,7 +277,9 @@
273
277
  $button-danger-active
274
278
  );
275
279
 
276
- padding-inline-end: calc(layout.density('padding-inline') - rem(1px));
280
+ padding-inline-end: calc(
281
+ layout.density('padding-inline') - convert.to-rem(1px)
282
+ );
277
283
 
278
284
  .#{$prefix}--btn__icon {
279
285
  position: static;
@@ -304,7 +310,10 @@
304
310
  @include type-style('body-compact-02');
305
311
 
306
312
  padding-block: min(
307
- calc((layout.size('height') - var(--temp-expressive-1lh)) / 2 - rem(1px)),
313
+ calc(
314
+ (layout.size('height') - var(--temp-expressive-1lh)) / 2 -
315
+ convert.to-rem(1px)
316
+ ),
308
317
  var(--temp-padding-block-max)
309
318
  );
310
319
  }
@@ -315,19 +324,19 @@
315
324
  }
316
325
 
317
326
  .#{$prefix}--btn.#{$prefix}--btn--expressive .#{$prefix}--btn__icon {
318
- width: rem(20px);
319
- height: rem(20px);
327
+ width: convert.to-rem(20px);
328
+ height: convert.to-rem(20px);
320
329
  }
321
330
 
322
331
  .#{$prefix}--btn-set .#{$prefix}--btn.#{$prefix}--btn--expressive {
323
- max-width: rem(320px);
332
+ max-width: convert.to-rem(320px);
324
333
  }
325
334
 
326
335
  // Skeleton State
327
336
  .#{$prefix}--btn.#{$prefix}--skeleton {
328
337
  @include skeleton;
329
338
 
330
- width: rem(150px);
339
+ width: convert.to-rem(150px);
331
340
  }
332
341
 
333
342
  // button set styles
@@ -342,10 +351,10 @@
342
351
  .#{$prefix}--btn-set .#{$prefix}--btn {
343
352
  width: 100%;
344
353
  // 196px from design kit
345
- max-width: rem(196px);
354
+ max-width: convert.to-rem(196px);
346
355
 
347
356
  &:not(:focus) {
348
- box-shadow: rem(-1px) 0 0 0 $button-separator;
357
+ box-shadow: convert.to-rem(-1px) 0 0 0 $button-separator;
349
358
  }
350
359
 
351
360
  &:first-of-type:not(:focus) {
@@ -358,7 +367,7 @@
358
367
  }
359
368
 
360
369
  .#{$prefix}--btn-set--stacked .#{$prefix}--btn:not(:focus) {
361
- box-shadow: 0 rem(-1px) 0 0 $button-separator;
370
+ box-shadow: 0 convert.to-rem(-1px) 0 0 $button-separator;
362
371
  }
363
372
 
364
373
  .#{$prefix}--btn-set--stacked .#{$prefix}--btn:first-of-type:not(:focus) {
@@ -366,7 +375,7 @@
366
375
  }
367
376
 
368
377
  .#{$prefix}--btn-set .#{$prefix}--btn.#{$prefix}--btn--disabled {
369
- box-shadow: rem(-1px) 0 0 0 $icon-on-color-disabled;
378
+ box-shadow: convert.to-rem(-1px) 0 0 0 $icon-on-color-disabled;
370
379
 
371
380
  &:first-of-type {
372
381
  box-shadow: none;
@@ -374,7 +383,7 @@
374
383
  }
375
384
 
376
385
  .#{$prefix}--btn-set--stacked .#{$prefix}--btn.#{$prefix}--btn--disabled {
377
- box-shadow: 0 rem(-1px) 0 0 $layer-selected-disabled;
386
+ box-shadow: 0 convert.to-rem(-1px) 0 0 $layer-selected-disabled;
378
387
 
379
388
  &:first-of-type {
380
389
  box-shadow: none;
@@ -14,7 +14,7 @@
14
14
  @use '../../theme' as *;
15
15
  @use '../../type' as *;
16
16
  @use '../../utilities/component-reset';
17
- @use '../../utilities/convert' as *;
17
+ @use '../../utilities/convert';
18
18
  @use '../../utilities/custom-property';
19
19
  @use '../../utilities/layout';
20
20
  @use 'tokens' as *;
@@ -38,7 +38,7 @@ $button-focus-color: custom-property.get-var('button-focus-color', $focus);
38
38
  // -1px to compensate for border width
39
39
  --temp-padding-block-max: calc(
40
40
  (#{custom-property.get-var('layout-size-height-lg')} - var(--temp-1lh)) / 2 -
41
- #{rem(1px)}
41
+ #{convert.to-rem(1px)}
42
42
  );
43
43
 
44
44
  @include component-reset.reset;
@@ -47,7 +47,7 @@ $button-focus-color: custom-property.get-var('button-focus-color', $focus);
47
47
  position: relative;
48
48
  display: inline-flex;
49
49
  width: max-content;
50
- max-width: rem(320px);
50
+ max-width: convert.to-rem(320px);
51
51
  min-height: layout.size('height');
52
52
  flex-shrink: 0;
53
53
  justify-content: space-between;
@@ -58,13 +58,16 @@ $button-focus-color: custom-property.get-var('button-focus-color', $focus);
58
58
  outline: none;
59
59
  // -1px to compensate for border width
60
60
  padding-block: min(
61
- calc((layout.size('height') - var(--temp-1lh)) / 2 - rem(1px)),
61
+ calc((layout.size('height') - var(--temp-1lh)) / 2 - convert.to-rem(1px)),
62
62
  var(--temp-padding-block-max)
63
63
  );
64
64
  padding-inline-end: calc(
65
- layout.density('padding-inline') * 3 + rem(16px) - rem(1px)
65
+ layout.density('padding-inline') * 3 + convert.to-rem(16px) -
66
+ convert.to-rem(1px)
67
+ );
68
+ padding-inline-start: calc(
69
+ layout.density('padding-inline') - convert.to-rem(1px)
66
70
  );
67
- padding-inline-start: calc(layout.density('padding-inline') - rem(1px));
68
71
  text-align: left;
69
72
  text-decoration: none;
70
73
  transition: background $duration-fast-01 motion(entrance, productive),
@@ -90,14 +93,16 @@ $button-focus-color: custom-property.get-var('button-focus-color', $focus);
90
93
  position: absolute;
91
94
  // -1px to compensate for border width
92
95
  top: min(
93
- calc((layout.size('height') - rem(16px)) / 2 - rem(1px)),
96
+ calc(
97
+ (layout.size('height') - convert.to-rem(16px)) / 2 - convert.to-rem(1px)
98
+ ),
94
99
  var(--temp-padding-block-max)
95
100
  );
96
101
  right: layout.density('padding-inline');
97
- width: rem(16px);
98
- height: rem(16px);
102
+ width: convert.to-rem(16px);
103
+ height: convert.to-rem(16px);
99
104
  flex-shrink: 0;
100
- margin-block-start: rem(1px);
105
+ margin-block-start: convert.to-rem(1px);
101
106
  }
102
107
  }
103
108
 
@@ -11,7 +11,7 @@
11
11
  @use '../../theme' as *;
12
12
  @use '../../type' as *;
13
13
  @use '../../utilities/component-reset';
14
- @use '../../utilities/convert' as *;
14
+ @use '../../utilities/convert';
15
15
  @use '../../utilities/skeleton' as *;
16
16
  @use '../../utilities/visually-hidden' as *;
17
17
 
@@ -28,7 +28,7 @@
28
28
 
29
29
  // Spacing above collection of checkboxes
30
30
  .#{$prefix}--form-item.#{$prefix}--checkbox-wrapper:first-of-type {
31
- margin-top: rem(3px);
31
+ margin-top: convert.to-rem(3px);
32
32
  }
33
33
 
34
34
  // Shift collection of checkboxes up if label is present
@@ -39,7 +39,7 @@
39
39
 
40
40
  // Spacing below collection of checkboxes
41
41
  .#{$prefix}--form-item.#{$prefix}--checkbox-wrapper:last-of-type {
42
- margin-bottom: rem(3px);
42
+ margin-bottom: convert.to-rem(3px);
43
43
  }
44
44
 
45
45
  // Visually, we'll hide the checkbox input and create our own styled version
@@ -60,16 +60,16 @@
60
60
 
61
61
  position: relative;
62
62
  display: flex;
63
- min-height: rem(24px);
64
- padding-top: rem(3px);
65
- padding-left: rem(20px);
63
+ min-height: convert.to-rem(24px);
64
+ padding-top: convert.to-rem(3px);
65
+ padding-left: convert.to-rem(20px);
66
66
  cursor: pointer;
67
67
  user-select: none;
68
68
  }
69
69
 
70
70
  .#{$prefix}--checkbox-label-text {
71
71
  // Add extra spacing when label is present
72
- padding-left: rem(6px);
72
+ padding-left: convert.to-rem(6px);
73
73
  }
74
74
 
75
75
  // Required because `$css--reset: true` cannot currently apply to this `::before` and `::after`
@@ -85,17 +85,18 @@
85
85
  // `top` since we don't want the checkbox to be centered vertically with the
86
86
  // text overflows.
87
87
  position: absolute;
88
- top: rem(2px);
88
+ top: convert.to-rem(2px);
89
89
  left: 0;
90
90
 
91
91
  // According to the spec, we'll want the bounding box for our checkbox to
92
92
  // be 16px. The border size will be what will be updated during the
93
93
  // different checkbox states.
94
- width: rem(16px);
95
- height: rem(16px);
94
+ width: convert.to-rem(16px);
95
+ height: convert.to-rem(16px);
96
96
  border: 1px solid $icon-primary;
97
97
  // increase left margin for #6480
98
- margin: rem(2px) rem(2px) rem(2px) rem(3px);
98
+ margin: convert.to-rem(2px) convert.to-rem(2px) convert.to-rem(2px)
99
+ convert.to-rem(3px);
99
100
 
100
101
  // Checkboxes with a background color look visually off against a parent container.
101
102
  background-color: transparent;
@@ -106,13 +107,13 @@
106
107
  // Create the appearance of the check in the `after` pseudo-element
107
108
  .#{$prefix}--checkbox-label::after {
108
109
  position: absolute;
109
- top: rem(7.5px);
110
- left: rem(7px);
111
- width: rem(9px);
112
- height: rem(5px);
110
+ top: convert.to-rem(7.5px);
111
+ left: convert.to-rem(7px);
112
+ width: convert.to-rem(9px);
113
+ height: convert.to-rem(5px);
113
114
  border-bottom: 1.5px solid $icon-inverse;
114
115
  border-left: 1.5px solid $icon-inverse;
115
- margin-top: rem(-3px) #{'/*rtl:0rem*/'};
116
+ margin-top: convert.to-rem(-3px) #{'/*rtl:0rem*/'};
116
117
  background: none;
117
118
  content: '';
118
119
  transform: scale(0) rotate(-45deg);
@@ -140,8 +141,8 @@
140
141
 
141
142
  // Indeterminate symbol
142
143
  .#{$prefix}--checkbox:indeterminate + .#{$prefix}--checkbox-label::after {
143
- top: rem(11px);
144
- width: rem(8px);
144
+ top: convert.to-rem(11px);
145
+ width: convert.to-rem(8px);
145
146
  border-bottom: 2px solid $icon-inverse;
146
147
  border-left: 0 solid $icon-inverse;
147
148
  transform: scale(1) rotate(0deg);
@@ -227,7 +228,7 @@
227
228
  }
228
229
 
229
230
  .#{$prefix}--checkbox__invalid-icon {
230
- margin: 0 rem(1px) 0 rem(3px);
231
+ margin: 0 convert.to-rem(1px) 0 convert.to-rem(3px);
231
232
  fill: $support-error;
232
233
  }
233
234
 
@@ -330,11 +331,11 @@
330
331
  .#{$prefix}--checkbox-label-text.#{$prefix}--skeleton {
331
332
  @include skeleton;
332
333
 
333
- width: rem(100px);
334
+ width: convert.to-rem(100px);
334
335
  height: $spacing-05;
335
336
 
336
337
  // Add extra spacing when label is present
337
- margin: rem(1px) 0 0 rem(6px);
338
+ margin: convert.to-rem(1px) 0 0 convert.to-rem(6px);
338
339
  }
339
340
 
340
341
  //-----------------------------------------------
@@ -13,7 +13,7 @@
13
13
  @use '../../theme' as *;
14
14
  @use '../../type' as *;
15
15
  @use '../../layer' as *;
16
- @use '../../utilities/convert' as *;
16
+ @use '../../utilities/convert';
17
17
  @use '../../utilities/focus-outline' as *;
18
18
  @use '../../utilities/high-contrast-mode' as *;
19
19
  @use '../../utilities/keyframes' as *;
@@ -226,7 +226,7 @@ $copy-btn-feedback: $background-inverse !default;
226
226
  // collapsed pre
227
227
  .#{$prefix}--snippet--multi .#{$prefix}--snippet-container pre {
228
228
  padding-right: $spacing-08;
229
- padding-bottom: rem(24px);
229
+ padding-bottom: convert.to-rem(24px);
230
230
  overflow-x: auto;
231
231
  }
232
232
 
@@ -249,7 +249,7 @@ $copy-btn-feedback: $background-inverse !default;
249
249
  position: absolute;
250
250
  top: 0;
251
251
  right: 0;
252
- width: rem(16px);
252
+ width: convert.to-rem(16px);
253
253
  height: 100%;
254
254
  background-image: linear-gradient(to right, transparent, $layer);
255
255
  content: '';
@@ -261,8 +261,8 @@ $copy-btn-feedback: $background-inverse !default;
261
261
 
262
262
  //Copy Button
263
263
  .#{$prefix}--snippet__icon {
264
- width: rem(16px);
265
- height: rem(16px);
264
+ width: convert.to-rem(16px);
265
+ height: convert.to-rem(16px);
266
266
  fill: $icon-primary;
267
267
  transition: all $duration-fast-01 motion(standard, productive);
268
268
  }
@@ -335,7 +335,7 @@ $copy-btn-feedback: $background-inverse !default;
335
335
  right: 0;
336
336
  bottom: 0;
337
337
  display: inline-flex;
338
- height: rem(32px);
338
+ height: convert.to-rem(32px);
339
339
  align-items: center;
340
340
 
341
341
  padding: $spacing-03 $spacing-05;
@@ -346,7 +346,7 @@ $copy-btn-feedback: $background-inverse !default;
346
346
 
347
347
  .#{$prefix}--snippet-btn--expand .#{$prefix}--snippet-btn--text {
348
348
  position: relative;
349
- top: rem(-1px);
349
+ top: convert.to-rem(-1px);
350
350
  }
351
351
 
352
352
  .#{$prefix}--snippet-btn--expand--hide.#{$prefix}--snippet-btn--expand {
@@ -422,7 +422,7 @@ $copy-btn-feedback: $background-inverse !default;
422
422
 
423
423
  .#{$prefix}--snippet-button .#{$prefix}--btn--copy__feedback {
424
424
  // (The height of button) + (The height of the tooltip's triangle) + 4px
425
- top: rem(50.8px);
425
+ top: convert.to-rem(50.8px);
426
426
  right: auto;
427
427
  left: 50%;
428
428
 
@@ -431,7 +431,7 @@ $copy-btn-feedback: $background-inverse !default;
431
431
  }
432
432
 
433
433
  &::after {
434
- top: rem(-4px);
434
+ top: convert.to-rem(-4px);
435
435
  }
436
436
  }
437
437
 
@@ -439,13 +439,13 @@ $copy-btn-feedback: $background-inverse !default;
439
439
  .#{$prefix}--snippet-button
440
440
  .#{$prefix}--btn--copy__feedback {
441
441
  // (The height of button) + (The height of the tooltip's triangle) + 4px
442
- top: rem(42.8px);
442
+ top: convert.to-rem(42.8px);
443
443
  }
444
444
 
445
445
  .#{$prefix}--snippet--inline .#{$prefix}--btn--copy__feedback {
446
446
  // TODO: use updated global tooltip mixins under the hood
447
447
  // since all of the positioning values for the copy button tooltip are arbitrary hard coded rem values, we need this arbitrary 4px offset to keep the proper tooltip spacing according to the spec
448
- top: calc(100% - #{rem(4px)});
448
+ top: calc(100% - #{convert.to-rem(4px)});
449
449
  right: auto;
450
450
  left: 50%;
451
451
  }
@@ -489,13 +489,13 @@ $copy-btn-feedback: $background-inverse !default;
489
489
  .#{$prefix}--snippet--single
490
490
  .#{$prefix}--snippet-container:focus
491
491
  ~ .#{$prefix}--snippet__overflow-indicator--right {
492
- right: calc(#{$spacing-08} + #{rem(2px)});
492
+ right: calc(#{$spacing-08} + #{convert.to-rem(2px)});
493
493
  }
494
494
 
495
495
  .#{$prefix}--snippet--single
496
496
  .#{$prefix}--snippet-container:focus
497
497
  + .#{$prefix}--snippet__overflow-indicator--left {
498
- left: rem(2px);
498
+ left: convert.to-rem(2px);
499
499
  }
500
500
 
501
501
  .#{$prefix}--snippet--light .#{$prefix}--snippet__overflow-indicator--left {
@@ -522,11 +522,11 @@ $copy-btn-feedback: $background-inverse !default;
522
522
  }
523
523
 
524
524
  .#{$prefix}--snippet--multi.#{$prefix}--skeleton {
525
- height: rem(98px);
525
+ height: convert.to-rem(98px);
526
526
  }
527
527
 
528
528
  .#{$prefix}--snippet--single.#{$prefix}--skeleton {
529
- height: rem(56px);
529
+ height: convert.to-rem(56px);
530
530
  }
531
531
 
532
532
  .#{$prefix}--snippet.#{$prefix}--skeleton span {
@@ -7,7 +7,7 @@
7
7
 
8
8
  @use '../../theme' as *;
9
9
  @use '../../type' as *;
10
- @use '../../utilities/convert' as *;
10
+ @use '../../utilities/convert';
11
11
 
12
12
  /// Code snippet base styles
13
13
  /// @access private
@@ -17,6 +17,6 @@
17
17
 
18
18
  position: relative;
19
19
  width: 100%;
20
- max-width: rem(768px);
20
+ max-width: convert.to-rem(768px);
21
21
  background-color: $layer;
22
22
  }
@@ -9,7 +9,7 @@
9
9
  @use '../menu';
10
10
  @use '../../config' as *;
11
11
  @use '../../motion' as *;
12
- @use '../../utilities/convert' as *;
12
+ @use '../../utilities/convert';
13
13
 
14
14
  /// Combo Button styles
15
15
  /// @access public
@@ -17,19 +17,19 @@
17
17
  @mixin combo-button {
18
18
  .#{$prefix}--combo-button__container {
19
19
  display: inline-flex;
20
- column-gap: rem(1px);
20
+ column-gap: convert.to-rem(1px);
21
21
  }
22
22
 
23
23
  $triggerSizes: (
24
- 'sm': rem(32px),
25
- 'md': rem(40px),
26
- 'lg': rem(48px),
24
+ 'sm': convert.to-rem(32px),
25
+ 'md': convert.to-rem(40px),
26
+ 'lg': convert.to-rem(48px),
27
27
  );
28
28
 
29
29
  @each $size, $trigger in $triggerSizes {
30
30
  .#{$prefix}--combo-button__container--#{$size}
31
31
  .#{$prefix}--combo-button__primary-action {
32
- min-width: 10rem - rem(1px) - $trigger;
32
+ min-width: 10rem - convert.to-rem(1px) - $trigger;
33
33
  }
34
34
  }
35
35
 
@@ -15,7 +15,6 @@
15
15
  @use '../../theme' as *;
16
16
  @use '../../type' as *;
17
17
  @use '../../utilities/button-reset';
18
- @use '../../utilities/convert' as *;
19
18
  @use '../../utilities/focus-outline' as *;
20
19
  @use '../../utilities/custom-property';
21
20
  @use '../../utilities/layout';