Hacker News new | ask | show | jobs
by bmacho 1118 days ago
No need for javascript for the hamburger menu, it is doable with CSS checkbox, see for example the hamburger menu on https://lanyon.getpoole.com/ .

Or another example, the teddit reddit-frontend has collapseable threads with the summary/details tags, also works without javascript.

1 comments

The CSS checkbox method is considered bad for accessibility. They’re adding a popover attribute to use for no JS menus instead.