<div class="menu" role="menu">
  <div class="menu-label">Session</div>
  <button class="menu-item" role="menuitem"><svg>…</svg>Re-run<span class="shortcut">R</span></button>
  <hr class="menu-separator" />
  <button class="menu-item menu-item-destructive" role="menuitem"><svg>…</svg>Delete</button>
</div>
Part Value
.menu popover fill, 10px radius, 4px padding, depth-floating, at least 128px wide
Open 100ms fade and scale from 95%, from the side it opens on
.menu-item 14px text, 8px radius, 4×6px padding, 16px icons, 6px gap
Highlighted :hover, :focus-visible or [data-highlighted] gives an accent fill
Current or checked aria-current or aria-checked="true" keeps the accent fill
.menu-item-destructive Destructive text and icon, with a destructive-tint highlight
Disabled aria-disabled="true": 50% opacity
.menu-label 12px medium muted
.menu-separator A 1px border line running the full width
.shortcut Right-aligned, 12px muted

Navigation menus don't lock page scroll. Positioning is the headless library's job; set --transform-origin and --available-height from it if it offers them.

sesan.studio