Skip to content

Suggested update to allow for CSS only custom checkboxes#58

Open
StephenGravitt wants to merge 1 commit intormorse:masterfrom
StephenGravitt:feature/category-ids-enable-css
Open

Suggested update to allow for CSS only custom checkboxes#58
StephenGravitt wants to merge 1 commit intormorse:masterfrom
StephenGravitt:feature/category-ids-enable-css

Conversation

@StephenGravitt
Copy link
Copy Markdown

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