2026-09-16 23:01 UTC
Apparently, it is very difficult to create an accessible, collapsible nav menu on the web without JavaScript. Recent browsers make it possible without hacks though. This was an interesting read: https://adrianroselli.com/2026/07/link-popover-navigation.html
#web #accessibility
Replies (1)
-
@adamhotep@infosec.exchange 2026-09-24 01:07
@lberrymage@infosec.exchange you can also do menus with hidden checkboxes. The CSS looks something like input[type="checkbox"], input[type="checkbox"]:not([checked="checked"] + div.menu { display:none } Use to target that hidden checkbox. (This is from memory)