File tree Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -209,6 +209,7 @@ $mat-list-item-inset-divider-offset: 72px;
209
209
.mat-list , .mat-nav-list , .mat-selection-list {
210
210
padding-top : $mat-list-top-padding ;
211
211
display : block ;
212
+ -webkit-tap-highlight-color : transparent ;
212
213
213
214
.mat-subheader {
214
215
@include mat-subheader-spacing ($mat-list-top-padding , $mat-list-base-height );
@@ -228,8 +229,9 @@ $mat-list-item-inset-divider-offset: 72px;
228
229
}
229
230
230
231
231
- .mat-list [dense ], .mat-nav-list [dense ], .mat-selection-list [dense ] {
232
-
232
+ .mat-list [dense ],
233
+ .mat-nav-list [dense ],
234
+ .mat-selection-list [dense ] {
233
235
padding-top : $mat-dense-top-padding ;
234
236
display : block ;
235
237
@@ -266,3 +268,16 @@ $mat-list-item-inset-divider-offset: 72px;
266
268
cursor : pointer ;
267
269
outline : none ;
268
270
}
271
+
272
+
273
+ // Disable the hover styles on non-hover devices. Since this is more of a progressive
274
+ // enhancement and not all desktop browsers support this kind of media query, we can't
275
+ // use something like `@media (hover)`.
276
+ @media (hover : none ) {
277
+ .mat-list-option ,
278
+ .mat-nav-list .mat-list-item {
279
+ & :hover {
280
+ background : none ;
281
+ }
282
+ }
283
+ }
You can’t perform that action at this time.
0 commit comments