Skip to content

Commit 6643735

Browse files
crisbetojelbourn
authored andcommitted
fix(button): ripples not being clipped to border radius on safari (#13645)
Fixes the button ripples not being clipped to the border radius in Safari due to the individual ripples being on a different layer because they have an animation.
1 parent b5889ca commit 6643735

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/material/button/button.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,12 @@
106106
border-radius: inherit;
107107
}
108108

109+
// Fixes the ripples not clipping to the border radius on Safari. Uses `:not(:empty)`
110+
// in order to avoid creating extra layers when there aren't any ripples.
111+
.mat-button-ripple.mat-ripple:not(:empty) {
112+
transform: translateZ(0);
113+
}
114+
109115
// Element that overlays the button to show focus and hover effects.
110116
.mat-button-focus-overlay {
111117
opacity: 0;

0 commit comments

Comments
 (0)