Created
July 17, 2017 22:21
-
-
Save brunolm/2213c2ceceec19165ca10830d8001510 to your computer and use it in GitHub Desktop.
Angular validation CSS Styles
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.ng-invalid.ng-touched:not(:focus):not(form) { border: 1px solid red; } | |
.ng-untouched ~ span, :focus ~ span { display: none; } | |
.ng-valid ~ span { display: none; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment