File tree Expand file tree Collapse file tree 4 files changed +11
-13
lines changed Expand file tree Collapse file tree 4 files changed +11
-13
lines changed Original file line number Diff line number Diff line change 8
8
$background : map-get ($theme , background );
9
9
$foreground : map-get ($theme , foreground );
10
10
11
- .mat-list , .mat-nav-list , .mat-selection-list {
11
+ .mat-list-base {
12
12
.mat-list-item {
13
13
color : mat-color ($foreground , text );
14
14
}
46
46
}
47
47
48
48
// Default list
49
- .mat-list , .mat-nav-list , .mat-selection-list {
49
+ .mat-list-base {
50
50
.mat-list-item {
51
51
font-size : mat-font-size ($config , subheading-2 );
52
52
@include mat-line-base (mat-font-size ($config , body-1 ));
65
65
}
66
66
67
67
// Dense list
68
- .mat-list [ dense ], .mat-nav-list [ dense ], .mat-selection-list [dense ] {
68
+ .mat-list-base [dense ] {
69
69
.mat-list-item {
70
70
font-size : mat-font-size ($config , caption );
71
71
@include mat-line-base (mat-font-size ($config , caption ));
Original file line number Diff line number Diff line change @@ -189,9 +189,7 @@ $mat-list-item-inset-divider-offset: 72px;
189
189
190
190
// This needs slightly more specificity, because it
191
191
// can be overwritten by the typography styles.
192
- .mat-list & ,
193
- .mat-nav-list & ,
194
- .mat-selection-list & {
192
+ .mat-list-base & {
195
193
margin : 0 ;
196
194
}
197
195
}
@@ -206,7 +204,7 @@ $mat-list-item-inset-divider-offset: 72px;
206
204
}
207
205
}
208
206
209
- .mat-list , .mat-nav-list , .mat-selection-list {
207
+ .mat-list-base {
210
208
padding-top : $mat-list-top-padding ;
211
209
display : block ;
212
210
-webkit-tap-highlight-color : transparent ;
@@ -229,9 +227,7 @@ $mat-list-item-inset-divider-offset: 72px;
229
227
}
230
228
231
229
232
- .mat-list [dense ],
233
- .mat-nav-list [dense ],
234
- .mat-selection-list [dense ] {
230
+ .mat-list-base [dense ] {
235
231
padding-top : $mat-dense-top-padding ;
236
232
display : block ;
237
233
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ export const _MatListItemMixinBase = mixinDisableRipple(MatListItemBase);
36
36
exportAs : 'matNavList' ,
37
37
host : {
38
38
'role' : 'navigation' ,
39
- 'class' : 'mat-nav-list'
39
+ 'class' : 'mat-nav-list mat-list-base '
40
40
} ,
41
41
templateUrl : 'list.html' ,
42
42
styleUrls : [ 'list.css' ] ,
@@ -51,7 +51,9 @@ export class MatNavList extends _MatListMixinBase implements CanDisableRipple {}
51
51
selector : 'mat-list' ,
52
52
exportAs : 'matList' ,
53
53
templateUrl : 'list.html' ,
54
- host : { 'class' : 'mat-list' } ,
54
+ host : {
55
+ 'class' : 'mat-list mat-list-base'
56
+ } ,
55
57
styleUrls : [ 'list.css' ] ,
56
58
inputs : [ 'disableRipple' ] ,
57
59
encapsulation : ViewEncapsulation . None ,
Original file line number Diff line number Diff line change @@ -263,7 +263,7 @@ export class MatListOption extends _MatListOptionMixinBase
263
263
host : {
264
264
'role' : 'listbox' ,
265
265
'[tabIndex]' : 'tabIndex' ,
266
- 'class' : 'mat-selection-list' ,
266
+ 'class' : 'mat-selection-list mat-list-base ' ,
267
267
'(focus)' : 'focus()' ,
268
268
'(blur)' : '_onTouched()' ,
269
269
'(keydown)' : '_keydown($event)' ,
You can’t perform that action at this time.
0 commit comments