Elektrine lite

← Feed

@adamhotep@infosec.exchange

2026-09-24 01:07 UTC

@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)

Replies (1)

  • @lberrymage@infosec.exchange 2026-09-24 01:19

    @adamhotep@infosec.exchange It's possible to do that, but that approach has some accessibility issues and other quirks that make it less than ideal. This article talks about some of them: https://www.smashingmagazine.com/2017/11/building-accessible-menu-systems/#sidenote-the-checkbox-hack

    Open ##4824933