🎲 Dealbreaker bugs in native popovers
matuzo.at·1d
🧩Web Components
Preview
Report Post

posted on 05.12.2025

One of my clients decided to write a custom popover component that uses native popovers under the hood. We built the component and were happy with it. They were about to ship it until we realised there was an accessibility bug so severe that it was a dealbreaker for us.

Popovers are floating UI elements you can show or hide by pressing a button. They come with many accessibility features built in, so you don’t have to handle most of the work. You can learn more about that in “The accessibility of the popover attribute” (YouTube).

All you need to use popovers is the popover and popovertarget attributes.

<button popovertarget="popover-html">HTML</button>
<div popover id="popover-html">
Hypertext ...

Similar Posts

Loading similar posts...