Repository navigation
feat(animations): provide warnings for non-animatable CSS properties - #45212
dario-piotrowicz wants to merge 11 commits into
Conversation
041ef5c to
f646f41
Compare
f646f41 to
2376a29
Compare
There was a problem hiding this comment.
We should consider (in a followup) whether we should make the validateStyleProperty a dev-mode-only check as well. Otherwise, there is an inconsistency between validateStyleProperty (which works in both prod and dev modes) and validateAnimatableStyleProperty (that actually works only in dev mode). I think dropping the validateStyleProperty in prod mode makes sense and would help remove some payload size (+ add some extra runtime perf benefits, since we'd need to execute less logic).
There was a problem hiding this comment.
yes sounds like a good idea 🙂👍
(I'd be happy to take that on! 😁)
There was a problem hiding this comment.
Cool, thanks @dario-piotrowicz 👍 That'd be a change in behavior that we should be able to land in the next major (v14).
2376a29 to
7d8053b
Compare
fb4aac9 to
bd04a93
Compare
atscott
left a comment
There was a problem hiding this comment.
LGTM with a couple nits
reviewed-for: public-api, size-tracking
9ddaf66 to
2a14282
Compare
dylhunn
left a comment
There was a problem hiding this comment.
reviewed-for: public-api
a33a36d to
2a14282
Compare
AndrewKushnir
left a comment
There was a problem hiding this comment.
@dario-piotrowicz looks great, just left one comment to see if we can improve the error message. Thank you.
warn developers when they are trying to animate non-animatable CSS properties so that can more easily understand why something is not being animated as they would expect it to resolves angular#27577
AndrewKushnir
left a comment
There was a problem hiding this comment.
Reviewed-for: public-api, size-tracking
|
Merge-assistance: I can't remove extra reviewers from the list, but the PR is approved and ready for merge. |
|
@AndrewKushnir I was able to remove them. So I removed the merge-assistance label. Not sure why it let me and not you. |
|
This PR was merged into the repository by commit 79d334b. |
…ngular#45212) warn developers when they are trying to animate non-animatable CSS properties so that can more easily understand why something is not being animated as they would expect it to resolves angular#27577 PR Close angular#45212
make the validateStyleProperty check dev-mode only so that it is consistent with the validateAnimatableStyleProperty check introduced in PR angular#45212 besides consistency this change also reduces the payload size and increases performance (since less logic is executed) original conversation: angular#45212 (comment)
…idation in the `validateAnimatableStyleProperty` function use the more complete check for the ngDevMode as it seems to be the preferred version (see: angular#45212 (comment))
) make the validateStyleProperty check dev-mode only so that it is consistent with the validateAnimatableStyleProperty check introduced in PR #45212 besides consistency this change also reduces the payload size and increases performance (since less logic is executed) original conversation: #45212 (comment) PR Close #45570
…idation (#45570) in the `validateAnimatableStyleProperty` function use the more complete check for the ngDevMode as it seems to be the preferred version (see: #45212 (comment)) PR Close #45570
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
warn developers when they are trying to animate non-animatable CSS
properties so that can more easily understand why something is not being
animated as they would expect it to
resolves #27577
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
Issue
Issue Number: #27577
Does this PR introduce a breaking change?
Other information