Dialog
A decision that must be made now: a native dialog with a question, one sentence of consequence, a way back and the act.
Open it. Escape or “Keep it” closes it; focus returns to the key.
- Native
<dialog>withshowModal(): focus moves in, is trapped, and returns to the opening key. - Name it with
aria-labelledbypointing at the question. - Put the flat key first, so the safe choice is reached first.