Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/material/list/list.scss
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,12 @@ mat-action-list {

.mat-list-item-disabled {
pointer-events: none;

// Since we can't use a color to indicate that the list
// item is disabled, we have to use opacity instead.
@include cdk-high-contrast {
opacity: 0.5;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does the contrast ratio end up being with this?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't measured it, but this isn't the first place where we indicate disabled elements by reducing the opacity to 0.5.

}
}

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