backdrop
The dimmed layer behind a modal overlay that covers the rest of the page.
In more detail
The backdrop shows that the page behind is unavailable. Clicking it may close a standard dialog but must not close an alert dialog, which needs an explicit choice.
Related terms
- modal dialog — A window laid over the page that users must deal with before returning to the page beneath, with role="dialog" and aria-modal="true".
- alertdialog — The ARIA role for a modal dialog that interrupts the user with an urgent message needing a response, such as confirming a deletion.
- scroll locking — Stopping the page behind an overlay from scrolling, usually by setting overflow: hidden on the body while the overlay is open.
- stopPropagation — An event method that stops the event from travelling to further elements, while other listeners on the current element still run.
Taught in
- Overlay Architecture: Portals, Stacking Contexts & Backdrops — Design Systems & Component Engineering
- Modal Dialogs & Alert Dialogs: Accessible Overlay Patterns — Design Systems & Component Engineering
- SyntheticEvent System: Event Delegation in Modern React — React 19 & Modern Component Architecture
- React Portals: Escaping Stacking Contexts for Modals — React 19 & Modern Component Architecture