Skip to content

Commit 422ad43

Browse files
committed
fix(button,button-toggle): ripples not clipping correctly in safari
Fixes the ripples on buttons and button toggles not being clipped to the border radius in Safari. Relates to #12244.
1 parent 5c51301 commit 422ad43

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
@@ -20,6 +20,9 @@ $mat-button-toggle-legacy-border-radius: 2px !default;
2020
border-radius: $mat-button-toggle-legacy-border-radius;
2121
-webkit-tap-highlight-color: transparent;
2222

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

0 commit comments

Comments
 (0)