Skip to content

Commit 7c32daf

Browse files
authored
fix(scss notation): fix & notation for utilities / box (#5006)
1 parent 6564e6b commit 7c32daf

File tree

1 file changed

+38
-38
lines changed

1 file changed

+38
-38
lines changed

ui/utilities/box/_index.scss

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -9,48 +9,48 @@
99
*/
1010
.slds-box {
1111
@include box($borders: around);
12+
}
1213

13-
/**
14-
* @summary Changes padding to .25rem
15-
*
16-
* @selector .slds-box_xx-small
17-
* @restrict .slds-box
18-
* @modifier
19-
*/
20-
&_xx-small,
21-
&--xx-small {
22-
padding: $spacing-xx-small;
23-
}
14+
/**
15+
* @summary Changes padding to .25rem
16+
*
17+
* @selector .slds-box_xx-small
18+
* @restrict .slds-box
19+
* @modifier
20+
*/
21+
.slds-box_xx-small,
22+
.slds-box--xx-small {
23+
padding: $spacing-xx-small;
24+
}
2425

25-
/**
26-
* @summary Changes padding to .5rem
27-
*
28-
* @selector .slds-box_x-small
29-
* @restrict .slds-box
30-
* @modifier
31-
*/
32-
&_x-small,
33-
&--x-small {
34-
padding: $spacing-x-small;
35-
}
26+
/**
27+
* @summary Changes padding to .5rem
28+
*
29+
* @selector .slds-box_x-small
30+
* @restrict .slds-box
31+
* @modifier
32+
*/
33+
.slds-box_x-small,
34+
.slds-box--x-small {
35+
padding: $spacing-x-small;
36+
}
3637

37-
/**
38-
* @summary Changes padding to .75rem
39-
*
40-
* @selector .slds-box_small
41-
* @restrict .slds-box
42-
* @modifier
43-
*/
44-
&_small,
45-
&--small {
46-
padding: $spacing-small;
47-
}
38+
/**
39+
* @summary Changes padding to .75rem
40+
*
41+
* @selector .slds-box_small
42+
* @restrict .slds-box
43+
* @modifier
44+
*/
45+
.slds-box_small,
46+
.slds-box--small {
47+
padding: $spacing-small;
48+
}
4849

49-
// Deprecate for slds-border--around
50-
&_border,
51-
&--border {
52-
@include box($padding: 0, $borders: around);
53-
}
50+
// Deprecate for slds-border--around
51+
.slds-box_border,
52+
.slds-box--border {
53+
@include box($padding: 0, $borders: around);
5454
}
5555

5656
/**

0 commit comments

Comments
 (0)