In this lesson, you watched what the page behind each of Kwame’s three components does while it’s open, and used that to ask whether the cancel question could have been a popover, or the help tip a dialog:
- A popover leaves the page usable. With the condition help tip open on the step ladder’s page, nothing behind it is dimmed. When Tomasz Nowak clicks the Reserve from December 12 button, on the page below the tip, the click works and the notice opens. The tip closes by light dismiss.
- Focus stays on the page. With the keyboard, Enter opens the tip, and Tab moves on to the About safety button, hidden behind the centered tip, while the tip stays open. Esc closes the tip and shows the focus ring on About safety. Placing the tip next to its button, so it covers nothing, comes in the next section. Watch out: however much a popover looks like a dialog, it can’t make the page wait.
- A modal makes the page wait. On My Reservations, Enter on Cancel step ladder opens the modal over a dimmed page and moves focus to Keep it. A click on Cancel hedge trimmer through the backdrop does nothing, because the page behind a modal is inert. Esc would close it, but Mei Lin Chen can’t skip past it to the page. While it’s open, the accessibility tree holds only the dialog, with its heading, its text and its two buttons.
- What a screen reader gets from a popover. With the tip open, Chromium’s full-page accessibility tree (November 29, 2026) still holds the whole page, About safety included, with the tip’s text right after its button. Nothing is inert, so a screen reader can read the tip and then carry on. With your screen reader, listen for a button named About condition that changes from collapsed to expanded.
- Animation. Popovers and dialogs can both animate their opening with
@starting-style, which is Baseline Newly available.
Ask what the page behind should do. If it must wait until someone answers or closes the box, use a modal dialog. If they can carry on, use a popover: an auto popover for help that can go when they click away, and a manual one for a notice that has to stay until it’s closed.
So the cancel question stays a modal dialog, the help tip an auto popover, and the saved notice a manual one.