Re:HTML and CSS techniques to reduce your JavaScript
by kypro on Friday June 04, 2021 @06:37AM
(#27392286)
Something to keep in mind about using checkboxs and radios to toggle state changes, CSS tricks in general is that depending on what you're doing they're often not fully accessible. To fully support keyboard input and aria attributes like `aria-expanded` you often need to use JavaScript.
[ Parent
| on HN ]
Re:HTML and CSS techniques to reduce your JavaScript
by nitrogen on Friday June 04, 2021 @09:27AM
(#27393367)
To fully support keyboard input...you often need to use JavaScript.
This seems 100% backward. What happened to tabindex? My experience has been that HTML+CSS (I wouldn't even call most of these "hacks", they are normal intended features of CSS) is much more likely to be navigable by keyboard than anything using JS.