Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit bc4dadc

Browse files
iangreenleafpetebacondarwin
authored andcommitted
docs(ngHide): use proper selector when overriding the CSS
The animation selector gives the default styles greater specificity that should be matched when overriding. Closes #10902 Closes #10913
1 parent ec53089 commit bc4dadc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/ng/directive/ngShowHide.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,11 @@ var NG_HIDE_IN_PROGRESS_CLASS = 'ng-hide-animate';
4040
*
4141
* By default, the `.ng-hide` class will style the element with `display: none!important`. If you wish to change
4242
* the hide behavior with ngShow/ngHide then this can be achieved by restating the styles for the `.ng-hide`
43-
* class in CSS:
43+
* class CSS. Note that the selector that needs to be used is actually `.ng-hide:not(.ng-hide-animate)` to cope
44+
* with extra animation classes that can be added.
4445
*
4546
* ```css
46-
* .ng-hide {
47+
* .ng-hide:not(.ng-hide-animate) {
4748
* /* this is just another form of hiding an element */
4849
* display: block!important;
4950
* position: absolute;

0 commit comments

Comments
 (0)