Closed kim366 closed 4 years ago
The space bar does toggle it, it is literally just a regular HTML checkbox:
Try it out here:
https://tailwindcss-custom-forms.netlify.app/
There is no JS or anything fancy here, just some CSS around a regular <input type="checkbox">
so all of the standard browser behavior just works 👍🏻
Hmm, then it must be a bug with my browser, sorry
Hello, you've done great work on these components! Unfortunately, I see, with many libraries that restyle checkboxes, accessibility suffers, as you can't control the checkbox with the keyboard. Radio buttons work well, which is a lot better than other libraries.
While a checkbox has focus, pressing the space bar should toggle it.