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 @@ -197,9 +197,7 @@ $mat-list-item-inset-divider-offset: 72px;
197
197
198
198
// This needs slightly more specificity, because it
199
199
// can be overwritten by the typography styles.
200
- .mat-list & ,
201
- .mat-nav-list & ,
202
- .mat-selection-list & {
200
+ .mat-list-base & {
203
201
margin : 0 ;
204
202
}
205
203
}
@@ -214,7 +212,7 @@ $mat-list-item-inset-divider-offset: 72px;
214
212
}
215
213
}
216
214
217
- .mat-list , .mat-nav-list , .mat-selection-list {
215
+ .mat-list-base {
218
216
padding-top : $mat-list-top-padding ;
219
217
display : block ;
220
218
-webkit-tap-highlight-color : transparent ;
@@ -237,9 +235,7 @@ $mat-list-item-inset-divider-offset: 72px;
237
235
}
238
236
239
237
240
- .mat-list [dense ],
241
- .mat-nav-list [dense ],
242
- .mat-selection-list [dense ] {
238
+ .mat-list-base [dense ] {
243
239
padding-top : $mat-dense-top-padding ;
244
240
display : block ;
245
241
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ export const _MatListItemMixinBase: CanDisableRippleCtor & typeof MatListItemBas
44
44
exportAs : 'matNavList' ,
45
45
host : {
46
46
'role' : 'navigation' ,
47
- 'class' : 'mat-nav-list'
47
+ 'class' : 'mat-nav-list mat-list-base '
48
48
} ,
49
49
templateUrl : 'list.html' ,
50
50
styleUrls : [ 'list.css' ] ,
@@ -59,7 +59,9 @@ export class MatNavList extends _MatListMixinBase implements CanDisableRipple {}
59
59
selector : 'mat-list, mat-action-list' ,
60
60
exportAs : 'matList' ,
61
61
templateUrl : 'list.html' ,
62
- host : { 'class' : 'mat-list' } ,
62
+ host : {
63
+ 'class' : 'mat-list mat-list-base'
64
+ } ,
63
65
styleUrls : [ 'list.css' ] ,
64
66
inputs : [ 'disableRipple' ] ,
65
67
encapsulation : ViewEncapsulation . None ,
Original file line number Diff line number Diff line change @@ -267,7 +267,7 @@ export class MatListOption extends _MatListOptionMixinBase
267
267
host : {
268
268
'role' : 'listbox' ,
269
269
'[tabIndex]' : 'tabIndex' ,
270
- 'class' : 'mat-selection-list' ,
270
+ 'class' : 'mat-selection-list mat-list-base ' ,
271
271
'(focus)' : 'focus()' ,
272
272
'(blur)' : '_onTouched()' ,
273
273
'(keydown)' : '_keydown($event)' ,
You can’t perform that action at this time.
0 commit comments