Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
fix(toolbar): prevents transition lag on ng-if/ng-hide/ng-show
Browse files Browse the repository at this point in the history
Closes #2663
  • Loading branch information
Robert Messerle committed May 2, 2015
1 parent 9abaed0 commit 544cb27
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/toolbar/toolbar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ md-toolbar {
width: 100%;
transition: box-shadow $swift-ease-in-out-duration linear;

&.ng-animate {
transition: none;
}

*,
*:before,
*:after {
Expand Down

4 comments on commit 544cb27

@ThomasBurleson
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So this tells ng-animate to NOT animate toolbar(s)?

@ThomasBurleson
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should include this fix for 0.9. You ?

@robertmesserle
Copy link
Contributor

@robertmesserle robertmesserle commented on 544cb27 May 2, 2015 via email

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@robertmesserle
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ThomasBurleson Okay, I added a safer fix for this.

Please sign in to comment.