bouncer
bouncer copied to clipboard
Add a ‘success’ or ‘valid’ class to an input once it has validated
There is an error
class, but no corresponding success
class. This would be very useful for styling fields that have been correctly filled out.
Is this in development? Any indication when this might get released?
@cferdinandi It would be great.
You already add aria-invalid="true"
, so aria-invalid="false"
after removing error would be great or a class is-valid
.
Hello, I just saw this and other request for enhancements, I think I can easily implement 2 or 3 enhancements as I already did for @cferdinandi validate.js (in my private repository, add .valid class, prevent default submit to submit from ajax etc.), the thing is, I see multiple stall pull requests, are there any guidelines for contribution @cferdinandi ? thanks in advance for your response, and thanks for creating this amazing library.
You could always use the pseudo-class :valid for styling a valid input, however a valid or success class would be sweet.
https://alligator.io/css/styling-form-input-validity/
Came here to find out about this - did anyone end up implementing it?