Skip to content

Commit

Permalink
fix(ripple): Apply will-change to surface rather than pseudo-elements (
Browse files Browse the repository at this point in the history
…#1872)

This avoids a rendering regression in Safari where ripples/shade
expanded beyond the border-radius of the surface, and also generally
decreases the surface area affected by `will-change`.
  • Loading branch information
kfranqueiro committed Jan 5, 2018
1 parent 0ec3942 commit 2a69fef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/mdc-ripple/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
--mdc-ripple-fg-translate-start: 0;

-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
will-change: transform, opacity;

&::before,
&::after {
Expand All @@ -36,7 +37,6 @@
opacity: 0;
pointer-events: none;
content: "";
will-change: transform, opacity;
}

&::before {
Expand Down

0 comments on commit 2a69fef

Please sign in to comment.