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

Suggested update to allow for CSS only custom checkboxes #58

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

Conversation

StephenGravitt
Copy link

Hello,

Love your plugin so far. I found myself making game-time adjustments to allow for custom checkboxes which I prefer to do with CSS only. However, this is only possible if the html structure is such that the label follows the checkbox input, and the label has a "for" attribute which matches the input id attribute. If you're unfamiliar with the technique, here is an article that does a good job of covering it:
https://medium.com/claritydesignsystem/pure-css-accessible-checkboxes-and-radios-buttons-54063e759bb3

I've provided one possible solution for this idea. If you have any objections or suggestions please let me know so I can update my code.

My hope is that you'll integrate this suggestion and I can keep my plugin on the main stream vs having a custom plugin to maintain.

…ent and for attribute matches input id. This setup enables custom css only checkboxes
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.

1 participant