Popovers
Small panels that open from a button often close unexpectedly, or strand keyboard users when they close.
The answer
Open popovers on click, not hover, and close them with Escape or a click outside. As strong as the weakest rule behind it: moderate.
-
Open a popover with controls on click, tap or Enter, not on hover.
APG says hover content with focusable items should be a non-modal dialog; Carbon's toggletip and Radix's popover open on activation.
- Applies when
- The overlay contains links, buttons or form controls.
- Based on
- Practitioner research
- Principle
- Keep people in control
- Common mistake
- A popover with controls that only opens on hover.
- GuidanceGuidance: Tooltip Pattern (WAI-ARIA Authoring Practices Guide)W3C WAI ARIA Authoring Practices Task Force
- Guidance: Tooltip usage (IBM Carbon)IBM Carbon Design System
- Guidance: Tooltip and Popover primitives (Radix UI)Radix UI
-
Close a popover on Escape or an outside click, and return focus to its button when closed by keyboard.
The HTML standard defines this behavior for the popover attribute and one component library matches it. The standard describes what browsers do; it is not a conformance rule for products, so it gives no floor. The spec excerpt read does not return focus after an outside click.
- Applies when
- A non-modal popover is open.
- Based on
- Practitioner research
- Principle
- Keep people in control
- Common mistake
- A popover that stays open with no way to close it from the keyboard.
- StandardStandard: HTML Standard, The popover attributeWHATWG, 2026
- GuidanceGuidance: Using the Popover APIMDN Web Docs, 2026
- Guidance: Tooltip and Popover primitives (Radix UI)Radix UI
The other rules
-
If a popover opens on hover or focus, people must be able to close it, move the pointer onto it, and have it stay open (WCAG 1.4.13).
WCAG 2.2 success criterion 1.4.13, level AA.
- Applies when
- The overlay is triggered by hover or focus.
- Based on
- Standard or law
- Principle
- Work for everyone
- StandardStandard: Understanding SC 1.4.13 Content on Hover or Focus (Level AA)W3C WAI
-
Opening one popover closes any other of the same kind.
Default browser behavior for auto popovers; no user evidence.
- Applies when
- More than one popover could be open.
- Based on
- Convention
- Principle
- Be consistent
- StandardStandard: HTML Standard, The popover attributeWHATWG, 2026
- GuidanceGuidance: Using the Popover APIMDN Web Docs, 2026
-
Don’t block the page behind a popover. If you need to block it, use a modal dialog.
The spec excerpt does not make the page inert for popovers and says a modal dialog cannot be a popover.
- Applies when
- Choosing between a popover and a modal dialog.
- Based on
- Convention
- Principle
- Keep people in control
- StandardStandard: HTML Standard, The popover attributeWHATWG, 2026
- GuidanceGuidance: Tooltip and Popover primitives (Radix UI)Radix UI
-
Don’t open a hover popover instantly, or it opens by accident.
One practitioner source on menus, sample not stated. See Mega menus.
- Applies when
- An overlay opens on hover.
- Based on
- Practitioner research
- Principle
- Prevent errors
- User researchUser research: Hover Delay for Drop-Down MenusEdward Scott, 2023
Accessibility
- WCAG 2.2 · 1.4.13WCAG 1.4.13 for hover or focus triggers.
- Place the popover next in keyboard order after its trigger (HTML standard, MDN).
- Custom menus need their own arrow-key handling.
Open questions
- OpenDoes closing on outside click cause accidental loss of work in popovers that hold forms? No source found.
- OpenWhere should focus go after an outside click?
- OpenNot read: APG dialog and disclosure pages for this pattern, and several design systems.
Sources
- User researchUser research: Hover Delay for Drop-Down MenusEdward Scott, 2023
- StandardsStandard: HTML Standard, The popover attributeWHATWG, 2026
- Standard: Understanding SC 1.4.13 Content on Hover or Focus (Level AA)W3C WAI
- GuidanceGuidance: Tooltip Pattern (WAI-ARIA Authoring Practices Guide)W3C WAI ARIA Authoring Practices Task Force
- Guidance: Tooltip usage (IBM Carbon)IBM Carbon Design System
- Guidance: Tooltip and Popover primitives (Radix UI)Radix UI
- Guidance: Using the Popover APIMDN Web Docs, 2026
Related
- TooltipsNever put anything people need in a tooltip. Keep it on the page.Answer: moderate.
- Modal dialogsUse a modal only when people must respond before anything else, and only after their own action.Answer: moderate.
- Focus management on open and closeMove focus into a dialog when it opens, and back to the control that opened it when it closes.Answer: moderate.
- Mega menusWait a moment before opening or closing on hover, and make the whole menu work from the keyboard.Answer: moderate.
- Selects vs radios vs comboboxesShow a few options as radio buttons. For a long list, let people type.Answer: moderate.