Skip to content

Commit 6c2dae0

Browse files
authored
fix(scss notation): fix & notation for utilities / media objects (#5008)
1 parent c97e93c commit 6c2dae0

File tree

1 file changed

+26
-26
lines changed

1 file changed

+26
-26
lines changed

ui/utilities/media-objects/_index.scss

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -12,36 +12,36 @@
1212
.slds-media {
1313
display: flex;
1414
align-items: flex-start;
15+
}
1516

16-
/**
17-
* Defines the figure area
18-
*
19-
* @selector .slds-media__figure
20-
*/
21-
&__figure {
22-
flex-shrink: 0;
23-
margin-right: $spacing-small;
17+
/**
18+
* Defines the figure area
19+
*
20+
* @selector .slds-media__figure
21+
*/
22+
.slds-media__figure {
23+
flex-shrink: 0;
24+
margin-right: $spacing-small;
25+
}
2426

25-
&_fixed-width {
26-
min-width: $square-icon-large-boundary; // accommodate largest icon size
27-
}
28-
}
27+
.slds-media__figure_fixed-width {
28+
min-width: $square-icon-large-boundary; // accommodate largest icon size
29+
}
2930

30-
/**
31-
* Defines the body area
32-
*
33-
* @selector .slds-media__body
34-
* @modifier
35-
*/
36-
&__body {
37-
flex: 1;
38-
min-width: 0; // This fixes an issue with truncation inside flexbox due to the changes in flex basis (already in FFOX, coming to Chrome)
39-
}
31+
/**
32+
* Defines the body area
33+
*
34+
* @selector .slds-media__body
35+
* @modifier
36+
*/
37+
.slds-media__body {
38+
flex: 1;
39+
min-width: 0; // This fixes an issue with truncation inside flexbox due to the changes in flex basis (already in FFOX, coming to Chrome)
40+
}
4041

41-
&__body,
42-
&__body > :last-child { // @TODO: Watch this - overreaching?
43-
margin-bottom: 0;
44-
}
42+
.slds-media__body,
43+
.slds-media__body > :last-child { // @TODO: Watch this - overreaching?
44+
margin-bottom: 0;
4545
}
4646

4747
.slds-media-body-iefix {

0 commit comments

Comments
 (0)