Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Animations disabling refactors #30653

Merged
merged 2 commits into from
Mar 19, 2025

Conversation

crisbeto
Copy link
Member

Includes a couple of refactors in the direction of allowing us to introduce a custom DI token for controlling Material animations:

refactor(multiple): consolidate logic for disabling animations

Adds a common function we can use to determine whether animations are disabled globally. This reduces duplication and makes it easier to change the logic.

refactor(cdk/overlay): add config option for disabling animations

Currently the CDK overlay uses ANIMATION_MODULE_TYPE to implicitly disable the backdrop animation, however we want to introduce a Material-specific way of disabling animations. These changes add a config option that we can use to do so.

Adds a common function we can use to determine whether animations are disabled globally. This reduces duplication and makes it easier to change the logic.
@crisbeto crisbeto added target: major This PR is targeted for the next major release merge: preserve commits When the PR is merged, a rebase and merge should be performed labels Mar 19, 2025
@crisbeto crisbeto requested a review from a team as a code owner March 19, 2025 12:56
@crisbeto crisbeto requested review from mmalerba and andrewseguin and removed request for a team March 19, 2025 12:56
Currently the CDK overlay uses `ANIMATION_MODULE_TYPE` to implicitly disable the backdrop animation, however we want to introduce a Material-specific way of disabling animations. These changes add a config option that we can use to do so.
@crisbeto crisbeto force-pushed the consolidate-animations-disabled branch from f8e01aa to 371be9e Compare March 19, 2025 13:03
@crisbeto crisbeto added the action: merge The PR is ready for merge by the caretaker label Mar 19, 2025
@crisbeto crisbeto merged commit 1ffe706 into angular:main Mar 19, 2025
19 of 22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
action: merge The PR is ready for merge by the caretaker area: cdk/overlay merge: preserve commits When the PR is merged, a rebase and merge should be performed target: major This PR is targeted for the next major release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants