Skip to content

Commit ea03cce

Browse files
authored
fix(list): no disabled indication in high contrast mode (#18567)
Fixes not being able to distinguish disabled list items in high contrast mode.
1 parent fe29835 commit ea03cce

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/material/list/list.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,12 @@ mat-action-list {
305305

306306
.mat-list-item-disabled {
307307
pointer-events: none;
308+
309+
// Since we can't use a color to indicate that the list
310+
// item is disabled, we have to use opacity instead.
311+
@include cdk-high-contrast {
312+
opacity: 0.5;
313+
}
308314
}
309315

310316
@include cdk-high-contrast(active, off) {

0 commit comments

Comments
 (0)