You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The css that provides the red border in 2.0 has moved to another class.
But this class is not provided in the distribution package.
Therefore out of the box there is no red border.
Adding a css-file with the following content will do the trick:
input.ng-dirty.ng-invalid,
select.ng-dirty.ng-invalid,
textarea.ng-dirty.ng-invalid {
border: 1px solid red;
}
I've opted to use the built in angular classes for highlighting. This gives the flexibility of allowing for different rules when showing red borders to the rules of showing the error message. It depends on the strategy used how you would set up your classes, thanks for your comment I think this needs to be documented.
The css that provides the red border in 2.0 has moved to another class.
But this class is not provided in the distribution package.
Therefore out of the box there is no red border.
Adding a css-file with the following content will do the trick:
input.ng-dirty.ng-invalid,
select.ng-dirty.ng-invalid,
textarea.ng-dirty.ng-invalid {
border: 1px solid red;
}
.ng-submitted input.ng-invalid,
.ng-submitted select.ng-invalid,
.ng-submitted textarea.ng-invalid {
border: 1px solid red;
}
The text was updated successfully, but these errors were encountered: