-
Notifications
You must be signed in to change notification settings - Fork 6.8k
fix(list): no disabled indication in high contrast mode #18567
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(list): no disabled indication in high contrast mode #18567
Conversation
Fixes not being able to distinguish disabled list items in high contrast mode.
// 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; |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Fixes not being able to distinguish disabled list items in high contrast mode. (cherry picked from commit ea03cce)
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Fixes not being able to distinguish disabled list items in high contrast mode.