rmorse / search-filter

Search & Filter is a simple search and filtering plugin for WordPress
GNU General Public License v2.0
93 stars 41 forks source link

Suggested update to allow for CSS only custom checkboxes #58

Open StephenGravitt opened 4 years ago

StephenGravitt commented 4 years ago

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.