Hacker News new | ask | show | jobs
by sheept 46 days ago
Yeah, I don't think the menu should've been a separate page. It can be made JavaScript-less as a dialog opened by the popover HTML attributes,[0] and the escape key would be able to close it.

[0]: https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/...

2 comments

Could be achieved with a checkbox input and a hidden div too
That's less accessible and capable than the popover / dialog solution.
I'm not at all against using some js for the menu, but a native dialog or popover is definitely a nice idea here.