Join Nostr
2025-03-10 20:05:41 UTC
in reply to

Olivier Forget on Nostr: Also, inspired by this post by Axel Rauschmayer I made the Navigation menu toggle in ...

Also, inspired by this post by I made the Navigation menu toggle in mobile/narrow viewports work without JS. Neat!

https://fosstodon.org/@rauschma/114099045695366948

However to make it more accessible I set aria-expanded to true or false, which you can't do with CSS. So I had to use JS for that. So JS is a requirement for accessibility apparently.

#CSS #JS #a11y