Skip to content
This repository was archived by the owner on Jan 13, 2025. It is now read-only.

Commit 2a69fef

Browse files
authored
fix(ripple): Apply will-change to surface rather than pseudo-elements (#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`.
1 parent 0ec3942 commit 2a69fef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/mdc-ripple/_mixins.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
--mdc-ripple-fg-translate-start: 0;
2929

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

3233
&::before,
3334
&::after {
@@ -36,7 +37,6 @@
3637
opacity: 0;
3738
pointer-events: none;
3839
content: "";
39-
will-change: transform, opacity;
4040
}
4141

4242
&::before {

0 commit comments

Comments
 (0)