Skip to content

Commit c677f11

Browse files
committed
fix(material/button-toggle): ripples not clipping correctly in safari (#12311)
Fixes the ripples on button toggles not being clipped to the border radius in Safari. Relates to #12244. (cherry picked from commit 938d787)
1 parent 70e865d commit c677f11

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

+3
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)