File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 27
27
}
28
28
29
29
.mat-list-option ,
30
- .mat-nav-list .mat-list-item {
30
+ .mat-nav-list .mat-list-item ,
31
+ .mat-action-list .mat-list-item {
31
32
& :hover , & :focus {
32
33
background : mat-color ($background , ' hover' );
33
34
}
Original file line number Diff line number Diff line change @@ -295,7 +295,8 @@ mat-action-list {
295
295
// use something like `@media (hover)`.
296
296
@media (hover : none ) {
297
297
.mat-list-option ,
298
- .mat-nav-list .mat-list-item {
298
+ .mat-nav-list .mat-list-item ,
299
+ .mat-action-list .mat-list-item {
299
300
& :not (.mat-list-item-disabled ):hover {
300
301
background : none ;
301
302
}
Original file line number Diff line number Diff line change @@ -74,6 +74,10 @@ export class MatList extends _MatListMixinBase implements CanDisableRipple {
74
74
*/
75
75
constructor ( private _elementRef ?: ElementRef < HTMLElement > ) {
76
76
super ( ) ;
77
+
78
+ if ( this . _getListType ( ) === 'action-list' && _elementRef ) {
79
+ _elementRef . nativeElement . classList . add ( 'mat-action-list' ) ;
80
+ }
77
81
}
78
82
79
83
_getListType ( ) : 'list' | 'action-list' | null {
You can’t perform that action at this time.
0 commit comments