-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
fix(drawer): respect NoopAnimationsModule
and @.disabled
binding
#12839
fix(drawer): respect NoopAnimationsModule
and @.disabled
binding
#12839
Conversation
e052fd5
to
651188b
Compare
src/lib/badge/_badge-theme.scss
Outdated
@@ -137,6 +137,10 @@ $mat-badge-large-size: $mat-badge-default-size + 6; | |||
white-space: nowrap; | |||
text-overflow: ellipsis; | |||
pointer-events: none; | |||
|
|||
._mat-animation-noopable &, .ng-animate-disabled & { |
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.
I've had this one open for a while now that handles the badge: #11408.
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.
I see, though it does not handle the @.disabled
binding and is not aligned with the way we go with #12829.
Same applies for comments below.
I can remove the cases where you already have a PR, but you should update your PRs to respect [@.disabled]
then.
src/lib/card/card.scss
Outdated
@@ -16,6 +16,10 @@ $mat-card-header-size: 40px !default; | |||
padding: $mat-card-default-padding; | |||
border-radius: $mat-card-border-radius; | |||
|
|||
&._mat-animation-noopable, &.ng-animate-disabled, .ng-animate-disabled & { |
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.
Handled by #11538.
src/lib/chips/chips.scss
Outdated
@@ -40,6 +40,10 @@ $mat-chip-remove-size: 18px; | |||
height: $mat-chip-remove-size; | |||
} | |||
|
|||
&._mat-animation-noopable, &.ng-animate-disabled, .ng-animate-disabled & { | |||
transition: none; |
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.
Handled by #11546.
@@ -13,6 +13,10 @@ | |||
transition: margin 225ms $mat-fast-out-slow-in-timing-function; | |||
border-radius: $border-radius; | |||
|
|||
&._mat-animation-noopable, &.ng-animate-disabled, .ng-animate-disabled & { | |||
transition: none; |
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.
Handled by #11576.
* Custom CSS transitions should not run if the `NoopAnimationsModule` or the `[@.disabled]` binding is being used.
34d7d54
to
71fdd69
Compare
NoopAnimationsModule
and @.disabled
binding
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
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. |
MatDrawer
, if theNoopAnimationsModule
or the[@.disabled]
binding is being used.Related to #12829