Hacker News new | ask | show | jobs
by chadlavi 2187 days ago
Note that this example he gives is not accessible: https://codepen.io/victorcopque/pen/OVxRbq

A keyboard user cannot access the hidden checkbox that controls showing/hiding the menu.

1 comments

I wonder if a better usability example would use the <details> and <summary> elements, which support collapsing/uncollapsing.
I've improved the demo with <details>/<summary> and fixed the erroneous list elements form the original: https://habarnam.ro/s/demo.html