Modal dialog
Component preview
A focused surface for a contained task that makes the rest of the page temporarily inactive.
Build pack
Choose the task and destination. Technical names stay in English.
In your own words
Documented aliases: modal, dialog, modal window
Try it
Compare all three behaviors
Shared comparison scenario: A project item opens a focused overlay while the underlying workspace remains unavailable until the user finishes or closes it.
This context stays fixed. Switch concepts to observe the mission, edge case, and specimen specific to each behavior.
Modal dialog
Use a Modal dialog for a general contained task; use Alert dialog for a short consequential decision and Lightbox when viewing media is the task.
Your task
Open the dialog, tab through every control, cancel with Escape, and verify focus returns to Edit member.
Edge case to verify
A validation error keeps the dialog open, links the message to the invalid field, and moves focus only when submission fails.
Mission
Open the dialog, tab through every control, cancel with Escape, and verify focus returns to Edit member.
Select a marker directly on the specimen, or use the list below, to see its role. Hide the markers to operate the lab without obstruction.
Backdrop
The layer that separates a modal surface from inactive page content.
Contain focus
While modal, keyboard focus stays inside the surface until it closes.
Dismiss with Escape
Escape closes the temporary surface and returns focus to a sensible control.
Dialog closed
Dialog closed
Dialog open
Dialog open
Dialog closed → Dialog open
The edit trigger is activated and focus enters the bounded task.
Dialog open → Dialog closed
The task is saved or cancelled, or Escape safely closes it, then focus returns to the trigger.
Dialog.Root
Equivalence caveat: Radix Dialog supplies modal focus mechanics, while labeling, destructive-action wording, layout, and testing remain application work.
Verify binding sourceW3C WAI · standard · 2026-07-16
Claim covered: Modal dialog: modal dialog labeling, initial focus, focus containment, Escape dismissal, and focus return guidance.
Radix Primitives · documentation · 2026-07-16
Claim covered: Modal dialog: documented Radix Dialog parts, modal focus management, portals, overlay, and dismissal hooks.
Verified on 2026-07-16 · rev. 1