The popover attribute creates top-layer UI without wiring a mini overlay system by hand. For menus and small panels, the declarative version is often enough.
<button popovertarget="menu">Menu</button>
<nav id="menu" popover>
<a href="/about">About</a>
<a href="/suggest">Contribute</a>
</nav>
More info on MDN.