Skip to content

Commit fe9fc46

Browse files
committed
fix(button-toggle): ripples not clipping correctly in safari
Fixes the ripples on button toggles not being clipped to the border radius in Safari. Relates to #12244.
1 parent add5a21 commit fe9fc46

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/material/button-toggle/button-toggle.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ $legacy-border-radius: 2px !default;
1919
border-radius: $legacy-border-radius;
2020
-webkit-tap-highlight-color: transparent;
2121

22+
// Fixes the ripples not being clipped to the border radius on Safari.
23+
transform: translateZ(0);
24+
2225
@include a11y.high-contrast(active, off) {
2326
outline: solid 1px;
2427
}

0 commit comments

Comments
 (0)