(no title)
FrontAid | 3 years ago
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.
FrontAid | 3 years ago
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.
lol768|3 years ago
omnimus|3 years ago
rudasn|3 years ago
Doesn't work for me on chrome mobile without JS.
dmitriid|3 years ago
Almost everyone else is "screw this, we're going to use links as buttons and divs as lists".
franciscop|3 years ago
We front-end devs would benefit from a lot more works of art like this, and then people trying to implement them into real systems would need to make them accessible. Similar to how we benefit greatly from Dribbble. If we don't allow for unrestricted just artistic bits like this, then creativity suffers.
Counterargument to myself: the click to copy though makes it seem like it's ready to use, and many newer devs would just use them straight away. It's on the hands of more senior devs to tell them that these snippets, similarly to many StackOverflow ones, need to be adapted to integrate in an actual app for things like accessibility, uniformity, etc.
CipherThrowaway|3 years ago
1. Crosses and squares being used instead of check marks.
2. Circles being used as containers instead of boxes.
3. Toggle switches being presented as checkboxes.
Maybe 5-10 of these are good inspiration for checkboxes.
shangxiao|3 years ago
I'm using a Chrome plugin Vimium - one of the shortcuts 'f' (documented as opening links) actually highlights all focusable elements. Using this feature shows most of the checkboxes are interactive.
Edit: I guess the reason for me pointing this out is hopefully there's an easy way to make these more accessible for keyboard users.
guivr|3 years ago
unknown|3 years ago
[deleted]
to1y|3 years ago
[deleted]
Vinnl|3 years ago
Though if your "checkbox" is to take effect immediately, consider using a toggle button: https://react-spectrum.adobe.com/react-aria/useToggleButton....
lopis|3 years ago
They look great, but I would warn developers to use them as inspiration but not as-is.
unknown|3 years ago
[deleted]
andrei_says_|3 years ago