Skip to content

fix(material/dialog): use custom token to disable animations #31156

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

Merged
merged 1 commit into from
May 20, 2025

Conversation

crisbeto
Copy link
Member

Fixes that the MatDialogOpener was using the NoopAnimationsModule to disable animations which requires user to have @angular/animations installed.

These changes switch to using MATERIAL_ANIMATIONS in the MatTestDialogOpenerModule and setting the animation durations to zero in case the module isn't used.

Fixes #31145.

Fixes that the `MatDialogOpener` was using the `NoopAnimationsModule` to disable animations which requires user to have `@angular/animations` installed.

These changes switch to using `MATERIAL_ANIMATIONS` in the `MatTestDialogOpenerModule` and setting the animation durations to zero in case the module isn't used.

Fixes angular#31145.
@crisbeto crisbeto added the target: patch This PR is targeted for the next patch release label May 20, 2025
@crisbeto crisbeto requested a review from a team as a code owner May 20, 2025 07:06
@crisbeto crisbeto requested review from adolgachev and mmalerba and removed request for a team May 20, 2025 07:06
@crisbeto crisbeto added the action: merge The PR is ready for merge by the caretaker label May 20, 2025
@crisbeto crisbeto merged commit 2971f13 into angular:main May 20, 2025
26 of 29 checks passed
@crisbeto
Copy link
Member Author

The changes were merged into the following branches: main, 19.2.x, 20.0.x

crisbeto added a commit that referenced this pull request May 20, 2025
Fixes that the `MatDialogOpener` was using the `NoopAnimationsModule` to disable animations which requires user to have `@angular/animations` installed.

These changes switch to using `MATERIAL_ANIMATIONS` in the `MatTestDialogOpenerModule` and setting the animation durations to zero in case the module isn't used.

Fixes #31145.

(cherry picked from commit 2971f13)
crisbeto added a commit that referenced this pull request May 20, 2025
Fixes that the `MatDialogOpener` was using the `NoopAnimationsModule` to disable animations which requires user to have `@angular/animations` installed.

These changes switch to using `MATERIAL_ANIMATIONS` in the `MatTestDialogOpenerModule` and setting the animation durations to zero in case the module isn't used.

Fixes #31145.

(cherry picked from commit 2971f13)
crisbeto added a commit to crisbeto/material2 that referenced this pull request May 21, 2025
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: material/dialog target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug(dialog): @angular/animations package still required to use MatDialogHarness
2 participants