RRigdesign system
Overlays

Popover

Lightweight contextual options anchored to a trigger.

Examples

Non-modal: Esc and outside click close it and return focus

Anatomy

Popover anatomy
#PartDescriptionPresence
1TriggerButton with aria-expandedRequired
2SurfaceMax height 480px, then scrollsRequired
3ContentInteractive allowedRequired

Specifications

Max height480px, then an internal scroll track

Interaction

Keyboard
KeyResult
Enter SpaceOpens from the trigger
TabMoves into and through the popover, then on
EscCloses, focus returns to trigger
Pointer and touch
TriggerResponse
ClickToggles
Outside clickCloses
PositionFlips to stay inside the viewport

Accessibility

role · dialog (non-modal)

2.1.1Keyboard2.4.3Focus Order4.1.2Name, Role, Value
Requirements
RequirementHow Rig meets it
Triggeraria-expanded and aria-controls
Rolerole="dialog" or group with an aria-label
Not a tooltipUse it when content is interactive or longer than a sentence
FocusNot trapped; leaving it closes it

Read the matching WAI pattern ↗

Usage

Do and don’t
DoDon’t
Keep to one taskDo not use for long forms (use Dialog)