Skip to content

Accessible Modals: From dialog showModal() to Focus Traps

You built a modal. You press Tab, and the buttons in the background get focus. You press ESC, and nothing closes. A screen reader plows through the content without even saying “dialog.” And when you click the close button, focus vanishes into thin air. Anyone who builds modals runs into all four of these at some point. The name focus trap sounds great, but the problem is that the trap tends to get set in the wrong place. Let’s fix them one by one. ...

Published date: 2026-10-24 · Reading time: 27 min · Word count: 5686 words · Author: Isaac

Popover, Anchor Positioning, Dialog: Are They Accessible Enough to Use Yet?

A green support table doesn't mean everyone can use it. Here's a 2026 accessibility check on popover, anchor positioning, dialog, and view transitions — and what you still have to do yourself for each.

Back to top