Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSS styles required for red borders are not documented #23

Open
ReinierGielen opened this issue Jan 16, 2015 · 1 comment
Open

CSS styles required for red borders are not documented #23

ReinierGielen opened this issue Jan 16, 2015 · 1 comment

Comments

@ReinierGielen
Copy link

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;
}

@refactorthis
Copy link
Owner

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.

@refactorthis refactorthis changed the title No red borders in 2.0 out of the box CSS styles required for red borders are not documented Jan 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants