-
Notifications
You must be signed in to change notification settings - Fork 6.8k
fix(material-experimental/mdc-snack-bar): disable animations in noop #21377
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
@@ -13,6 +13,10 @@ | |||
@include cdk-high-contrast(active, off) { | |||
border: solid 1px; | |||
} | |||
|
|||
&:not(._mat-animation-noopable) { |
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 think this is cleaner, but my concern is that the :not
increases the specificity and it can make it difficult for people to override the styles.
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.
True - I'd rather not add the need for more specificity for the general case with animations. Changed to be straightforward with removing transition
. The only danger is if MDC changes the animated styles but we can deal with that another time
7d7d59e
to
006c1e7
Compare
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. |
No description provided.