Popovers

Small panels that open from a button often close unexpectedly, or strand keyboard users when they close.

Copying a link from a Share menu. When the menu opens on hover, it closes as the pointer moves toward Copy link. When it opens on click, it stays until the person chooses, and Escape closes it.

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.
  • Close a popover on Escape or an outside click, and return focus to its button when closed by keyboard.

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).
  • Opening one popover closes any other of the same kind.
  • Don’t block the page behind a popover. If you need to block it, use a modal dialog.
  • Don’t open a hover popover instantly, or it opens by accident.

Accessibility

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.
Checked November 12, 2026

Sources