Y
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
drawfloat
45 days ago
Could be achieved with a checkbox input and a hidden div too
link
extra88
45 days ago
That's less accessible and capable than the popover / dialog solution.
link
nchmy
46 days ago
I'm not at all against using some js for the menu, but a native dialog or popover is definitely a nice idea here.
link