Skip to content

Commit

Permalink
fix(material/button-toggle): ripples not clipping correctly in safari (
Browse files Browse the repository at this point in the history
…angular#12311)

Fixes the ripples on button toggles not being clipped to the border radius in Safari.

Relates to angular#12244.
  • Loading branch information
crisbeto authored and forsti0506 committed Apr 3, 2022
1 parent 56a0218 commit fd0c7f6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/material/button-toggle/button-toggle.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ $legacy-border-radius: 2px !default;
border-radius: $legacy-border-radius;
-webkit-tap-highlight-color: transparent;

// Fixes the ripples not being clipped to the border radius on Safari.
transform: translateZ(0);

@include a11y.high-contrast(active, off) {
outline: solid 1px;
}
Expand Down

0 comments on commit fd0c7f6

Please sign in to comment.