Concept cluster
Modal surfaces
Compare a general modal task, a consequential decision, and focused media viewing with the page made inactive.
Try the 3 concepts, compare what changes, then use the Pack that fits your need.
Try the componentsModal surfaces
Try it
Is the task about acting, confirming a consequential decision, or viewing media?
Modal dialog
Shared trial context
A project item opens a focused overlay while the underlying workspace remains unavailable until the user finishes or closes it.
Modal dialog
Mission
Modal dialog
Open the dialog, tab through every control, cancel with Escape, and verify focus returns to Edit member.
Step 1 of 3
Try
Try the component. Your live result appears just above. Move on at your own pace.
Behavior and edge case
- What to observe
- The edit form opens with its title announced and focus on the first useful field.
- Edge case
- A validation error keeps the dialog open, links the message to the invalid field, and moves focus only when submission fails.
Alert dialog
Mission
Alert dialog
Open the warning, read the named consequence, cancel with the keyboard, then reopen and confirm deliberately.
Step 1 of 3
Try
Try the component. Your live result appears just above. Move on at your own pace.
Behavior and edge case
- What to observe
- The warning names the workspace, explains permanent loss, and initially focuses the safer Keep it action.
- Edge case
- While deletion is submitting, both actions prevent duplicate activation and the dialog reports the pending state.
What this example shows
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.
Which fits your need?
Modal dialog
Editing a compact record without losing page context
Alert dialog
Confirming a permanent deletion
Difference and sources
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.
Read the sourcesParts of the specimen
Select a numbered marker on the schematic, or use the list below, to see its role. The schematic shows the concept's representative state.
Backdrop
The layer that separates a modal surface from inactive page content.
The three concepts
The three comparisons
Signals you are confusing them
These descriptions fit every concept in the cluster, so none of them is enough to decide.
- a centered overlay blocks the page behind it
- a focused layer must be finished or closed before returning