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

Add a ‘success’ or ‘valid’ class to an input once it has validated #38

Open
matthewmcvickar opened this issue Jan 29, 2019 · 5 comments
Labels
enhancement New feature or request

Comments

@matthewmcvickar
Copy link

matthewmcvickar commented Jan 29, 2019

There is an error class, but no corresponding success class. This would be very useful for styling fields that have been correctly filled out.

@cferdinandi cferdinandi added the enhancement New feature or request label Aug 10, 2019
@robinvoor
Copy link

Is this in development? Any indication when this might get released?

@awgul
Copy link

awgul commented Sep 21, 2019

@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.

@alanalvarado
Copy link

alanalvarado commented Dec 30, 2019

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.

@nathanaskinner
Copy link

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/

@kyds3k
Copy link

kyds3k commented Dec 25, 2020

Came here to find out about this - did anyone end up implementing it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

7 participants