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 36b2bba05f
commit 7c011e79d8
2 changed files with 6 additions and 20 deletions

View File

@@ -9,3 +9,9 @@
ng\:form {
display: block;
}
/* 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;
}