You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.
Currently we use the latter in 3 or so places ourselves, and only use the former within the latter.
However, the automatic/forced inclusion of will-change: box-shadow contributed to bug #1665, which makes me wonder if including it by default might not be the best idea. Either way, we do expose a CSS class which applies both transition and will-change, and we could keep that unchanged. So my vote would be to remove mdc-elevation-transition and keep ...-rule.
Another option would be to nix the function and remove will-change from the mixin, thus making the mixin equivalent to what the function currently does, but emitting the style for you.
Either way, I'm not sure there's a reason for both of these things to exist when they're so similar.
The text was updated successfully, but these errors were encountered:
Another argument for favoring the -rule function over the mixin is it enables you to combine the value it returns with other transition properties within a single rule. (h/t ErraticFox on discord for bringing up this use case.)
I'm going to go about removing the mixin and using the -rule function everywhere, so that I can safely move the ripple will-change property back to the surface and off of the pseudo-elements (which will resolve #1753 and #1854 without regressing #1665).
We currently have a function and a mixin that do nearly the same thing:
transition
property valuetransition
rule plus addswill-change: box-shadow
Currently we use the latter in 3 or so places ourselves, and only use the former within the latter.
However, the automatic/forced inclusion of
will-change: box-shadow
contributed to bug #1665, which makes me wonder if including it by default might not be the best idea. Either way, we do expose a CSS class which applies bothtransition
andwill-change
, and we could keep that unchanged. So my vote would be to removemdc-elevation-transition
and keep...-rule
.Another option would be to nix the function and remove
will-change
from the mixin, thus making the mixin equivalent to what the function currently does, but emitting the style for you.Either way, I'm not sure there's a reason for both of these things to exist when they're so similar.
The text was updated successfully, but these errors were encountered: