From b5487c7d55728a5660b21022bc936a5e9652af49 Mon Sep 17 00:00:00 2001 From: Ian Young Date: Thu, 29 Jan 2015 13:53:56 -0800 Subject: [PATCH] docs(ngHide): Use proper selector for CSS override The animation selector gives the default styles greater specificity that should be matched when overriding. Closes #10902 --- src/ng/directive/ngShowHide.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ng/directive/ngShowHide.js b/src/ng/directive/ngShowHide.js index f7ece60f40fe..877470f6cfa3 100644 --- a/src/ng/directive/ngShowHide.js +++ b/src/ng/directive/ngShowHide.js @@ -40,10 +40,10 @@ var NG_HIDE_IN_PROGRESS_CLASS = 'ng-hide-animate'; * * By default, the `.ng-hide` class will style the element with `display: none!important`. If you wish to change * the hide behavior with ngShow/ngHide then this can be achieved by restating the styles for the `.ng-hide` - * class in CSS: + * class (plus a psuedo-selector for animation) in CSS: * * ```css - * .ng-hide { + * .ng-hide:not(.ng-hide-animate) { * /* this is just another form of hiding an element */ * display: block!important; * position: absolute;