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 validity class target selector configuration #59

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

farneman
Copy link
Contributor

This adds a classSelector config option in the form of a function that receives the currently validated element as an argument. If this config option is supplied, it is called and the result is used as the target for adding validity classes. If not the element is used as it presently does. Having this option allows for other common CSS styling patterns that are not possible with only having classes on the actual validated element.

I wasn't sure the best place to put the test for this feature, so let me know if I need to move it.

@farneman
Copy link
Contributor Author

@Boldewyn would this be something that you would consider adding?

@farneman farneman force-pushed the add-validity-class-selector branch from 57eb2aa to 2365ba8 Compare May 20, 2017 13:59
@farneman
Copy link
Contributor Author

I've updated this branch to sync with the current master.

@farneman
Copy link
Contributor Author

farneman commented Jun 8, 2017

@Boldewyn Any chance you would be able to look at this sometime soon?

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

Successfully merging this pull request may close these issues.

None yet

1 participant