Skip to content
This repository was archived by the owner on Jan 13, 2025. It is now read-only.

Commit 751dabd

Browse files
authored
fix(ripple): Ensure hover/focus states have proper z-index (#2204)
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.
1 parent 3ba2dc8 commit 751dabd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/mdc-ripple/_mixins.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141

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

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

0 commit comments

Comments
 (0)