RRigdesign system
Overlays

Backdrop

The scrim behind overlays. Click outside to dismiss.

Examples

The scrim is 55% dark with a 28px blur; clicking it closes the dialog

Click outside this card, or press Esc.

Anatomy

Backdrop anatomy
#PartDescriptionPresence
1Scrim55% dark, 60% lightRequired
2Blur28pxRequired

Specifications

Alpha55% dark · 60% light
Blur28px

Interaction

Keyboard
KeyResult
EscCloses the dialog that owns it
Pointer and touch
TriggerResponse
ClickCloses the dialog unless it blocks a destructive choice

Accessibility

role · scrim

1.4.11Non-text Contrast2.1.2No Keyboard Trap
Requirements
RequirementHow Rig meets it
Not contentDecorative; the dialog is modal so the page behind is inert
ContrastScrim keeps the dialog at 3:1 against its surroundings
Reduced motionFade only, no blur transition

Read the matching WAI pattern ↗

Usage

Do and don’t
DoDon’t
Use a scrim whenever the page behind should not be usedDo not use a scrim for non-modal popovers