3 ms·
An accessible (or at least a no-js) way to expose a menu on click would be to use a checkbox, the :checked state in CSS, and a label element for the actual clic
by julianlam 6y ago
An accessible (or at least a no-js) way to expose a menu on click would be to use a checkbox, the :checked state in CSS, and a label element for the actual click handler.
It's a semantic html nightmare but it works.
- brianzelip 6y agoFor sure. Note that the escape key for unchecking won't work with out js.