A share popover should expose actionable destinations and restore focus when dismissed. Make a copy-link option understandable without its icon.
Worked example
<button type="button" popovertarget="panel">Share this guide</button>
<div popover id="panel" class="box">
<a href="mailto:?subject=Studio%20guide">Send by email</a>
<p>
<button type="button" popovertarget="panel" popovertargetaction="hide">
Close
</button>
</p>
</div>Implementation notes
Sharing a private item may require a separate permission decision. The popover should describe the destination without silently changing access.
Try it yourself
Open from the keyboard, dismiss with Escape and reopen.
Open the UI Components example →Editorial date October 20, 2025 · Published December 6, 2026