Skip to content

Commit

Permalink
fix(ripple): Ensure hover/focus states have proper z-index (#2204)
Browse files Browse the repository at this point in the history
Previously, if the ripple surface had a non-statically-positioned child element (e.g., `position: relative`), the hover/focus wash was displayed _below_ the child instead of _above_ it.
  • Loading branch information
acdvorak authored Feb 6, 2018
1 parent 3ba2dc8 commit 751dabd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/mdc-ripple/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@

&::before {
transition: opacity $mdc-states-wash-duration linear;
z-index: 1; // Ensure that the ripple wash for hover/focus states is displayed on top of positioned child elements
}

// Common styles for upgraded surfaces (some of these depend on custom properties set via JS or other mixins)
Expand Down

0 comments on commit 751dabd

Please sign in to comment.