-
Notifications
You must be signed in to change notification settings - Fork 6.8k
fix(material-experimental/chips): high contrast mode fixes #16811
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
Conversation
Fixes the following issues with the MDC-based chips in high contrast mode: * Chips blending in with the background because they don't have an outline or a border. * No focus indication being visible. * Chips being hidden completely on hover because we were using an RGBA overlay.
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.
Could we upstream these fixes to mdc web?
cc @abhiomkar
|
||
// Note that we use a `background` and `opacity`, instead of an `rgba` background, because | ||
// `rgba` backgrounds get converted into solid colors in high contrast mode. | ||
background: #000; |
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.
Just black
?
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 went with this since it's shorter.
That would be great! Thanks .. |
FWIW some of the changes here target the hover indication that we implemented ourselves because we aren't using the MDC ripples. |
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
Feel free to upstream whatever makes sense
(not merge-safe since the chips are actually used by one team now) |
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 the following issues with the MDC-based chips in high contrast mode: