CSS checkbox examples
21–30 of 64 posts
Re: CSS checkbox examples
#22Some of the others are pretty nice though!
Re: CSS checkbox examples
#23Unfortunately, almost all of them are terrible for accessibility. Most of them cannot be focussed by keyboard. And even more do not have a focus styling. I did not check their code, but that alone does not make a good impression. Please consider accessibility when you have the urge to build custom (form) components. For checkboxes, have a look at https://www.w3.org/WAI/ARIA/apg/patterns/checkbox/ for some guidelines.
Good point. Indeed looks like only a few have. I'll try to add focus styles to all of them in the future. Thanks!
Re: CSS checkbox examples
#24I think the green and red color is a must for all sliders. It's very hard to tell if it's On or Off when it's a monochrome slider.
And... most of the sliders shown fail miserably. come on guys you are not helping my perception that design is a sick profession.
Re: CSS checkbox examples
#25Re: CSS checkbox examples
#26Re: CSS checkbox examples
#27Lots of these made for a nice showcase but should never be used in a product ever - just horrendously unintuitive. For some, I wouldn't even know they were checkboxes if the page wasn't titled "here's a bunch of checkboxes". But a few of them were actually quite nice, accessible, and pleasantly useable.
Ultimately it seems that the checkboxes that were closest to the native OS checkboxes were the ones I enjoyed trying the most. I guess that's a predictable outcome. But it might be an indication that the further one strays from the OS defaults, the less good of a design it is? Maybe checkboxes are a solved problem, and there is only narrowly limited room for a brand to apply its personality on form controls before they become less usable for the sake of being "unique".
#33 was by far my favourite, for the record.
Re: CSS checkbox examples
#28Re: CSS checkbox examples
#29Unfortunately, almost all of them are terrible for accessibility. Most of them cannot be focussed by keyboard. And even more do not have a focus styling. I did not check their code, but that alone does not make a good impression. Please consider accessibility when you have the urge to build custom (form) components. For checkboxes, have a look at https://www.w3.org/WAI/ARIA/apg/patterns/checkbox/ for some guidelines.
Re: CSS checkbox examples
#30Unfortunately, almost all of them are terrible for accessibility. Most of them cannot be focussed by keyboard. And even more do not have a focus styling. I did not check their code, but that alone does not make a good impression. Please consider accessibility when you have the urge to build custom (form) components. For checkboxes, have a look at https://www.w3.org/WAI/ARIA/apg/patterns/checkbox/ for some guidelines.
Tailwind UI's checkboxes ( https://tailwindui.com/components/application-ui/forms/check... ) are fine, accessibility-wise. They can be tabbed to using the keyboard, they are proper elements in the DOM, they can be activated using the space key, they can be activated by clicking on their label.
Almost everyone else is "screw this, we're going to use links as buttons and divs as lists".