Skip to content

Commit 6564e6b

Browse files
authored
fix(scss notation): fix & notation for utilities / description list (#5007)
1 parent 6c2dae0 commit 6564e6b

File tree

1 file changed

+48
-44
lines changed

1 file changed

+48
-44
lines changed

ui/utilities/description-list/_index.scss

Lines changed: 48 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -9,27 +9,29 @@
99
.slds-dl_inline,
1010
.slds-dl--inline {
1111
@include clearfix;
12+
}
1213

13-
@include mq-small-min {
14-
/**
15-
* @summary Marks a term
16-
* @selector .slds-dl_inline__label
17-
* @modifier
18-
*/
19-
&__label {
20-
float: left;
21-
clear: left;
22-
}
14+
@include mq-small-min {
15+
/**
16+
* @summary Marks a term
17+
* @selector .slds-dl_inline__label
18+
* @modifier
19+
*/
20+
.slds-dl_inline__label,
21+
.slds-dl--inline__label {
22+
float: left;
23+
clear: left;
24+
}
2325

24-
/**
25-
* @summary Marks a description
26-
* @selector .slds-dl_inline__detail
27-
* @modifier
28-
*/
29-
&__detail {
30-
float: left;
31-
padding-left: $spacing-xx-small;
32-
}
26+
/**
27+
* @summary Marks a description
28+
* @selector .slds-dl_inline__detail
29+
* @modifier
30+
*/
31+
.slds-dl_inline__detail,
32+
.slds-dl--inline__detail {
33+
float: left;
34+
padding-left: $spacing-xx-small;
3335
}
3436
}
3537

@@ -49,35 +51,37 @@
4951
}
5052
}
5153

52-
/**
53-
* @summary Causes description list to display horizontally with `dt` consuming 33% of the space and the `dd` taking up the rest.
54-
* @selector .slds-dl_horizontal
55-
* @modifier
56-
*/
57-
.slds-dl_horizontal,
58-
.slds-dl--horizontal {
59-
@include mq-small-min {
54+
@include mq-small-min {
55+
/**
56+
* @summary Causes description list to display horizontally with `dt` consuming 33% of the space and the `dd` taking up the rest.
57+
* @selector .slds-dl_horizontal
58+
* @modifier
59+
*/
60+
.slds-dl_horizontal,
61+
.slds-dl--horizontal {
6062
display: flex;
6163
flex-wrap: wrap;
64+
}
6265

63-
/**
64-
* @summary Marks a term
65-
* @selector .slds-dl_horizontal__label
66-
* @modifier
67-
*/
68-
&__label {
69-
width: 30%;
70-
padding-right: $spacing-small;
71-
}
66+
/**
67+
* @summary Marks a term
68+
* @selector .slds-dl_horizontal__label
69+
* @modifier
70+
*/
71+
.slds-dl_horizontal__label,
72+
.slds-dl--horizontal__label {
73+
width: 30%;
74+
padding-right: $spacing-small;
75+
}
7276

73-
/**
74-
* @summary Marks a description
75-
* @selector .slds-dl_horizontal__detail
76-
* @modifier
77-
*/
78-
&__detail {
79-
width: 70%;
80-
}
77+
/**
78+
* @summary Marks a description
79+
* @selector .slds-dl_horizontal__detail
80+
* @modifier
81+
*/
82+
.slds-dl_horizontal__detail,
83+
.slds-dl--horizontal__detail {
84+
width: 70%;
8185
}
8286
}
8387

0 commit comments

Comments
 (0)