Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: