-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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(material-experimental/mdc-chips): set correct ripple opacity for … #21624
Conversation
07b8790
to
8c0381f
Compare
&:not(:focus) { | ||
.mdc-chip__ripple { | ||
opacity: 0; | ||
} |
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.
This increases the specificity a lot and makes it harder to change the opacity to something else, e.g. if we needed a different one on hover. Based on these styles, the element should be transparent by default. Maybe this indicates that there's a different issue someplace else?
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.
Changed to including different mixins instead of increasing specificity
8c0381f
to
8ffe0b3
Compare
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
8ffe0b3
to
6ec4a81
Compare
6ec4a81
to
f2460a6
Compare
angular#21624) * fix(material-experimental/mdc-chips): set correct ripple opacity for focus states * fix(material-experimental/mdc-chips): extract styles into mixin
angular#21624) * fix(material-experimental/mdc-chips): set correct ripple opacity for focus states * fix(material-experimental/mdc-chips): extract styles into mixin
angular#21624) * fix(material-experimental/mdc-chips): set correct ripple opacity for focus states * fix(material-experimental/mdc-chips): extract styles into mixin
angular#21624) * fix(material-experimental/mdc-chips): set correct ripple opacity for focus states * fix(material-experimental/mdc-chips): extract styles into mixin
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. |
…focus states
Previously the ripple was always set to the focus opacity for selected chips even when not focused.
This is because
mdc-chip-fill-color-accessible
includesmdc-chip-selected-ink-color
which overrides the default ripple opacity so the focus ripple is always visible for selected chips.The first chip is focused for both images.
Before
After