-
Notifications
You must be signed in to change notification settings - Fork 6.8k
fix(overlay): disable all animations when using the NoopAnimationsModule #11614
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
Conversation
| import {OverlayRef} from './overlay-ref'; | ||
| import {OverlayPositionBuilder} from './position/overlay-position-builder'; | ||
| import {ScrollStrategyOptions} from './scroll/index'; | ||
| import {ANIMATION_MODULE_TYPE} from '@angular/platform-browser/animations'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This introduces a dependency on @angular/animations that I don't think we want in the CDK
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn’t the token technically in platform-browser? Also we’ve got the experimental/dialog which has a dependency on animations.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is, though I assume @angular/platform-browser/animations would depend on @angular/animations? If it doesn't then maybe this is fine. @jelbourn might know more
|
I'm think we should just leave this one, since we haven't had any issues w/ overlay backdrop in particular |
|
It’s something that came up in #10590 (comment). |
|
I see; let's presubmit it then and see what happens |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
@jelbourn the presubmit will probably be fine (maybe have to change a BUILD rule or something) my concern was more, does this change cause @angular/cdk to depend on @angular/animations, and if so is that a problem? |
|
Ah, I was just thinking about Google, but yeah, it would technically be a breaking change if there's a new peerDep for |
|
The question is whether it’s actually a new peerDep. The new import is from platform-browser/animations, rather than animations. |
|
cdk is currently |
|
I asked Matias and he said |
cef381d to
b3750f4
Compare
|
Hi @crisbeto! This PR has merge conflicts due to recent upstream merges. |
b3750f4 to
4db7b41
Compare
4db7b41 to
c2688ca
Compare
fc219c8 to
abec28d
Compare
abec28d to
6e94dcc
Compare
|
Has there been any decision whether this breaking change is going into cdk? It's easy enough for now using a |
|
I think we still want to do this, just at a major release, @jelbourn correct me if I'm wrong |
Disables the CSS-based animations in the overlay when using the `NoopAnimationsModule`. Relates to angular#10590.
6e94dcc to
601533e
Compare
|
Closing in favor of #24687. |
|
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. |

Disables the CSS-based animations in the overlay when using the
NoopAnimationsModule.Relates to #10590.