Skip to main content
  1. Docs
  2. Components
  3. Overlays

Popover

Content on demand, anchored to its trigger: filters, a quick edit, a detail. Not modal.

Import
@qeetrix/react
Status
StableSince 0.0.2
Renders
<div role="dialog">Server-rendered
Tested
WCAG 2.2 AAaxe on every pull request

01

Keyboard

KeysWhat happens
EnterSpaceOn its trigger: opens it; focus moves in.
EscapeCloses it; focus returns to the trigger.
TabTabMoves through it, and out of it: it doesn't trap focus.

02

Behaviour

Role and name
A non-modal dialog, named by its title, aria-label or aria-labelledby.
Focus
In on open, back to the trigger on close.
Dismiss
Escape or an outside click.

03

Tested

On every change, before it ships.

  • axe, WCAG 2.2 A and AA, in Chromium on every pull request
  • Firefox and WebKit every night
  • Focus: where it lands as it opens, and where it returns as it closes
  • Forced colours, reduced motion and right to left
Next — PopoverChangelog