taborlab / Iris

The Light Program Interface
BSD 3-Clause "New" or "Revised" License
12 stars 2 forks source link

Add CSS for .ng-invalid class (and possibly .ng-valid if it looks good) #143

Closed SynbioLucas closed 9 years ago

SynbioLucas commented 9 years ago

Color feedback for invalid form input elements. Something like this would work, but whatever looks good is fine:

input.ng-invalid {
  border: 1px solid red;
}
input.ng-valid {
  border: 1px solid green;
}

(via here)

These classes will automatically be applied to input elements as users enter stuff.

SynbioLucas commented 9 years ago

@felixekn This should actually be a custom error class, not ng-invalid, since we're not using angular's validation framework anymore.