File tree 2 files changed +17
-1
lines changed
2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ sass_binary(
33
33
name = "list_scss" ,
34
34
src = "list.scss" ,
35
35
deps = [
36
+ "//src/cdk/a11y:a11y_scss_lib" ,
36
37
"//src/lib/core:core_scss_lib" ,
37
38
"//src/lib/divider:divider_scss_lib"
38
39
],
Original file line number Diff line number Diff line change 2
2
@import ' ../core/style/list-common' ;
3
3
@import ' ../core/style/layout-common' ;
4
4
@import ' ../divider/divider-offset' ;
5
+ @import ' ../../cdk/a11y/a11y' ;
5
6
6
7
7
8
$mat-list-side-padding : 16px ;
@@ -269,7 +270,7 @@ $mat-list-item-inset-divider-offset: 72px;
269
270
}
270
271
271
272
mat-action-list {
272
- // remove the native button look and make it look like a list item
273
+ // Remove the native button look and make it look like a list item
273
274
button {
274
275
background : none ;
275
276
color : inherit ;
@@ -289,6 +290,20 @@ mat-action-list {
289
290
outline : none ;
290
291
}
291
292
293
+ @include cdk-high-contrast {
294
+ .mat-selection-list :focus {
295
+ outline-style : dotted ;
296
+ }
297
+
298
+ .mat-list-option ,
299
+ .mat-nav-list .mat-list-item ,
300
+ mat-action-list .mat-list-item {
301
+ & :hover , & :focus {
302
+ outline : dotted 1px ;
303
+ }
304
+ }
305
+ }
306
+
292
307
293
308
// Disable the hover styles on non-hover devices. Since this is more of a progressive
294
309
// enhancement and not all desktop browsers support this kind of media query, we can't
You can’t perform that action at this time.
0 commit comments