Create non-modal top-layer content with the popover attribute. Compare declarative controls and JavaScript, test light dismiss, and copy reusable HTML, CSS, and JS.
<buttontype="button"popovertarget="feature-popover"popovertargetaction="toggle">Open popover</button><divclass="popover-card"id="feature-popover"popover><h2>Actions panel</h2><p>This content lives in the top layer without creating a modal.</p><buttontype="button"popovertarget="feature-popover"popovertargetaction="hide">Close</button></div>