Skip to content

Commit 0fa982a

Browse files
jendownsjoshblack
authored andcommitted
fix(styles): replace old spacing vars with new syntax (#4889)
1 parent 04ed480 commit 0fa982a

File tree

6 files changed

+23
-23
lines changed

6 files changed

+23
-23
lines changed

packages/components/src/components/accordion/_accordion.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@
143143
.#{$prefix}--accordion__content {
144144
display: block;
145145
padding-bottom: $carbon--spacing-06;
146-
padding-top: $spacing-xs;
146+
padding-top: $spacing-03;
147147
// Transition property for when the accordion opens
148148
transition: padding-top motion(entrance, productive) $duration--fast-02,
149149
padding-bottom motion(entrance, productive) $duration--fast-02;

packages/components/src/components/code-snippet/_code-snippet.scss

+8-8
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
}
5454

5555
.#{$prefix}--snippet--inline code {
56-
padding: 0 $spacing-xs;
56+
padding: 0 $spacing-03;
5757
}
5858

5959
// Single Line Snippet
@@ -78,7 +78,7 @@
7878
.#{$prefix}--snippet--single pre {
7979
white-space: nowrap;
8080
@include type-style('code-01');
81-
padding-right: $spacing-xs;
81+
padding-right: $spacing-03;
8282
}
8383

8484
.#{$prefix}--snippet--single::after {
@@ -181,8 +181,8 @@
181181
.#{$prefix}--snippet--multi .#{$prefix}--snippet-button {
182182
height: $carbon--spacing-07;
183183
width: $carbon--spacing-07;
184-
top: $spacing-xs;
185-
right: $spacing-xs;
184+
top: $spacing-03;
185+
right: $spacing-03;
186186
}
187187

188188
.#{$prefix}--snippet-button:hover {
@@ -217,9 +217,9 @@
217217
display: inline-flex;
218218
align-items: center;
219219
position: absolute;
220-
right: $spacing-xs;
221-
bottom: $spacing-xs;
222-
padding: $spacing-xs;
220+
right: $spacing-03;
221+
bottom: $spacing-03;
222+
padding: $spacing-03;
223223
padding-left: $carbon--spacing-05;
224224
color: $text-01;
225225
background-color: $field-01;
@@ -237,7 +237,7 @@
237237

238238
.#{$prefix}--snippet-btn--expand .#{$prefix}--icon-chevron--down {
239239
fill: $text-01;
240-
margin-left: $spacing-xs;
240+
margin-left: $spacing-03;
241241
margin-bottom: rem(1px);
242242
transform: rotate(0deg);
243243
transition: $duration--moderate-01 motion(standard, productive);

packages/components/src/components/copy-button/_copy-button.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
@include layer('overlay');
3939
@include type-style('body-short-01');
4040
top: 1.1rem;
41-
padding: $spacing-2xs;
41+
padding: $spacing-02;
4242
color: $inverse-01;
4343
content: attr(data-feedback);
4444
transform: translateX(-50%);

packages/components/src/components/data-table/_data-table-action.scss

+9-9
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
.#{$prefix}--search-magnifier {
7676
height: $layout-04;
7777
width: $layout-04;
78-
padding: $spacing-md;
78+
padding: $spacing-05;
7979
left: 0;
8080
cursor: pointer;
8181
pointer-events: all;
@@ -141,7 +141,7 @@
141141
.#{$prefix}--toolbar-search-container-active
142142
.#{$prefix}--search
143143
.#{$prefix}--search-input {
144-
padding-left: $spacing-3xl;
144+
padding-left: $spacing-09;
145145
visibility: inherit;
146146
}
147147

@@ -206,7 +206,7 @@
206206
cursor: pointer;
207207
height: $layout-04;
208208
width: $layout-04;
209-
padding: $spacing-md;
209+
padding: $spacing-05;
210210
transition: background $duration--fast-02 motion(entrance, productive);
211211
}
212212

@@ -289,14 +289,14 @@
289289
.#{$prefix}--toolbar-search-container-persistent
290290
.#{$prefix}--search
291291
.#{$prefix}--search-magnifier {
292-
left: $spacing-md;
292+
left: $spacing-05;
293293
}
294294

295295
.#{$prefix}--toolbar-search-container-persistent
296296
.#{$prefix}--search
297297
.#{$prefix}--search-input {
298298
height: $layout-04;
299-
padding-left: $spacing-3xl;
299+
padding-left: $spacing-09;
300300
border: none;
301301
}
302302

@@ -345,8 +345,8 @@
345345
top: 0;
346346
left: 0;
347347
align-items: center;
348-
padding-left: $spacing-lg;
349-
padding-right: $spacing-lg;
348+
padding-left: $spacing-06;
349+
padding-right: $spacing-06;
350350
width: 100%;
351351
height: 100%;
352352
pointer-events: none;
@@ -502,7 +502,7 @@
502502
.#{$prefix}--search-magnifier {
503503
height: rem(32px);
504504
width: rem(32px);
505-
padding: $spacing-xs;
505+
padding: $spacing-03;
506506
}
507507

508508
//hidden
@@ -570,7 +570,7 @@
570570
.#{$prefix}--table-toolbar--small .#{$prefix}--toolbar-action {
571571
height: rem(32px);
572572
width: rem(32px);
573-
padding: $spacing-xs;
573+
padding: $spacing-03;
574574
}
575575

576576
.#{$prefix}--table-toolbar--small .#{$prefix}--btn--primary {

packages/components/src/components/data-table/_data-table-inline-edit.scss

+3-3
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535

3636
&:focus {
3737
@include focus-outline;
38-
padding: $spacing-3xs;
38+
padding: $spacing-01;
3939

4040
.#{$prefix}--inline-edit-label__icon {
4141
width: auto;
@@ -58,7 +58,7 @@
5858
margin-left: rem(-12px);
5959

6060
input {
61-
padding-left: $spacing-sm;
61+
padding-left: $spacing-04;
6262
}
6363
}
6464

@@ -68,7 +68,7 @@
6868
}
6969

7070
select {
71-
padding: 0.45rem 2.75rem 0.45rem $spacing-md;
71+
padding: 0.45rem 2.75rem 0.45rem $spacing-05;
7272
}
7373

7474
.#{$prefix}--select__arrow {

packages/components/src/components/pagination/_pagination.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ $css--helpers: true;
5252
width: auto;
5353
min-width: auto;
5454
height: 100%;
55-
padding: 0 2.5rem 0 $spacing-md;
55+
padding: 0 2.5rem 0 $spacing-05;
5656
margin-right: -0.65rem;
5757
@include carbon--breakpoint('md') {
5858
padding-right: carbon--mini-units(4.5);

0 commit comments

Comments
 (0)