21
21
@import " ./mixins" ;
22
22
@import " ./variables" ;
23
23
24
- // TODO(acdvorak): Find a way to remove parent .mdc-list and .mdc-list-group selectors; they violate BEM.
25
24
.mdc-list ,
26
25
.mdc-list-group {
27
- @include mdc-list-divider-color ($mdc-list-divider-color-light );
28
-
29
26
@include mdc-theme-dark {
30
27
@include mdc-list-divider-color ($mdc-list-divider-color-dark );
31
28
}
32
29
}
33
30
31
+ @at-root {
32
+ @include mdc-list-divider-color ($mdc-list-divider-color-light );
33
+ }
34
+
34
35
// postcss-bem-linter: define list
35
36
36
37
.mdc-list {
37
38
@include mdc-typography (subheading2);
38
-
39
- // TODO(acdvorak): Find a way to remove parent .mdc-list selector; it violates BEM.
40
39
@include mdc-list-item-primary-text-ink-color (text- primary- on- background);
41
- @include mdc-list-item-secondary-text-ink-color (text- secondary- on- background);
42
- @include mdc-list-item-graphic-fill-color (transparent );
43
- @include mdc-list-item-graphic-ink-color (text- icon- on- background);
44
- @include mdc-list-item-meta-ink-color (text- hint- on- background);
45
40
46
41
@include mdc-theme-dark {
47
42
@include mdc-list-item-primary-text-ink-color (text- primary- on- dark);
59
54
list-style-type : none ;
60
55
}
61
56
57
+ @at-root {
58
+ @include mdc-list-item-secondary-text-ink-color (text- secondary- on- background);
59
+ @include mdc-list-item-graphic-fill-color (transparent );
60
+ @include mdc-list-item-graphic-ink-color (text- icon- on- background);
61
+ @include mdc-list-item-meta-ink-color (text- hint- on- background);
62
+ }
63
+
62
64
.mdc-list--dense {
63
65
padding-top : 4px ;
64
66
padding-bottom : 4px ;
@@ -215,8 +217,6 @@ a.mdc-list-item {
215
217
// postcss-bem-linter: define list-group
216
218
217
219
.mdc-list-group {
218
- @include mdc-list-group-subheader-ink-color (text- primary- on- background);
219
-
220
220
@include mdc-theme-dark {
221
221
@include mdc-list-group-subheader-ink-color (text- primary- on- dark);
222
222
}
@@ -238,4 +238,8 @@ a.mdc-list-item {
238
238
}
239
239
}
240
240
241
+ @at-root {
242
+ @include mdc-list-group-subheader-ink-color (text- primary- on- background);
243
+ }
244
+
241
245
// postcss-bem-linter: end
0 commit comments