Skip to content

Commit 230403e

Browse files
andrewseguinjelbourn
authored andcommitted
fix(material-experimental/mdc-button): elevate z-index of content (#17349)
1 parent 49e72a9 commit 230403e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/material-experimental/mdc-button/_button-base.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@
3434
// smaller. We have special logic for stroked buttons to handle this scenario.
3535
border-radius: inherit;
3636
}
37+
38+
// The content should appear over the state and ripple layers, otherwise they may adversely affect
39+
// the accessibility of the text content.
40+
.mdc-button__label {
41+
z-index: 1;
42+
}
3743
}
3844

3945
// MDC's disabled buttons define a default cursor with pointer-events none. However, they select

0 commit comments

Comments
 (0)