fix($animate): remove the need to add display:block!important for ngShow/ngHide

Since ngShow/ngHide animations add and remove the .ng-hide class, having to remember
to write display:block on your own is a hassle and leads to problematic animation
code. This fix places a default on the animation for you instead.

Closes #3813
This commit is contained in:
Matias Niemelä
2014-05-30 01:16:26 -04:00
parent ca566d8d81
commit 55b2f0e862
2 changed files with 7 additions and 18 deletions

View File

@@ -14,3 +14,9 @@ ng\:form {
transition:0s all!important;
-webkit-transition:0s all!important;
}
/* show the element during a show/hide animation when the
* animation is ongoing, but the .ng-hide class is active */
.ng-hide-add-active, .ng-hide-remove {
display: block!important;
}