Skip to content

Commit

Permalink
fix(ripple): Update states-selector() to use :active:active to matc…
Browse files Browse the repository at this point in the history
…h active specificity styles.

PiperOrigin-RevId: 363921514
  • Loading branch information
EstebanG23 authored and Copybara-Service committed Mar 19, 2021
1 parent 71e615b commit faa7d32
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions packages/mdc-ripple/_ripple-theme.scss
Expand Up @@ -386,10 +386,13 @@ $pressed-light-ink-opacity: 0.32 !default;

/// Selector for hover, active and focus states.
@mixin states-selector() {
&:hover,
&:active,
&:not(.mdc-ripple-upgraded):focus,
&.mdc-ripple-upgraded--background-focused {
&:hover {
@content;
}
@include focus {
@content;
}
@include active {
@content;
}
}
Expand Down

0 comments on commit faa7d32

Please sign in to comment.