Popover

On this page 7

A popover is a non-modal floating container that appears next to a trigger element and displays supplementary content, controls or short forms without navigating away from the current screen. In UI design, it sits between the lightweight tooltip and the blocking modal dialog: it can hold interactive content, it stays visually anchored to its source, and it usually closes when the user clicks elsewhere or presses Escape.

Popovers are a core pattern in most design systems because they let an interface reveal detail on demand. A date picker attached to an input, a color swatch selector in an editor toolbar and a profile card that opens from an avatar are all popovers. Designing one well requires decisions about triggering, positioning, focus management and dismissal, each of which affects usability and accessibility.

How a popover is anchored and displayed

A popover is rendered in a top layer above the page content and positioned relative to its trigger, called the anchor or reference element. A positioning engine calculates a preferred placement, such as below and aligned to the start edge, and then applies collision detection so that the panel flips or shifts when it would overflow the viewport.

Most popovers include an optional arrow or caret that points at the anchor and makes the spatial relationship explicit. The panel typically has a defined maximum width, an internal padding scale and an elevation token from the design system, which separates it from the surface below through shadow and a subtle border rather than a full backdrop.

The following table lists the main anatomical parts of a popover and the role each one plays.

PartRoleTypical design decision
TriggerElement that opens the panelButton, icon button, link or input
PanelContainer for the contentMax width of 240 to 400 px, elevation token
ArrowPoints to the triggerOptional, 8 to 12 px, follows placement flips
HeaderOptional title and close controlUsed when content is complex or long
BodyText, controls or a short formKeep to one focused task
FooterOptional actionsPrimary and secondary buttons, aligned to the end
Anatomy of a popover

Triggers, placement and dismissal behavior

Popovers should open on an explicit user action, normally a click, tap or Enter key press on the trigger. Opening on hover alone is a common error, because touch devices have no hover state and keyboard users cannot reach content that disappears when the pointer leaves. Hover-triggered content belongs to the tooltip pattern, or it must follow the hover rules in WCAG success criterion 1.4.13 on content on hover or focus.

Placement is expressed as a side plus an alignment, for example bottom-start or right-center. The choice depends on reading direction, the available space and what the panel must not cover. The table below compares common placements.

PlacementBest suited forMain risk
Bottom-startToolbar buttons, form inputs, menusOverflow near the bottom of the viewport
TopTriggers near the bottom of the screenCovers headings or content above
Right or leftItems in lists and side navigationToo narrow on small screens
Center overlayMobile fallback for complex contentBehaves almost like a modal
Common popover placements

A popover is normally dismissed by light dismiss, meaning a click or tap outside the panel, by pressing Escape, by activating the trigger again, or by completing the task inside it. Dismissal must never discard unsaved input silently; when the popover contains a form, an explicit cancel action or a confirmation is safer than light dismiss.

Popover compared with tooltip, dropdown and modal

The popover differs from neighboring overlay patterns mainly in interactivity and blocking behavior. A tooltip is a short, non-interactive label; a dropdown menu is a list of commands or options; a modal dialog blocks the rest of the interface until the user responds. Confusing these patterns produces inconsistent behavior across a product.

PatternInteractive contentBlocks the pageTypical trigger
TooltipNoNoHover or focus
PopoverYesNoClick, tap or key press
Dropdown menuMenu items onlyNoClick or key press
Modal dialogYesYes, with backdropClick or system event
Toast notificationLimited actionsNoSystem event
How the popover relates to other overlays

A useful rule is that if the content needs a decision before work can continue, a modal dialog is appropriate; if it supports the current task and can be ignored, a popover fits better. If the content is a single sentence that explains an icon, a tooltip is sufficient.

Accessibility and focus management in popovers

An accessible popover exposes its state and moves focus predictably. The trigger should carry aria-expanded and, where useful, aria-controls pointing to the panel. When the panel contains interactive elements, focus moves into it on open and returns to the trigger on close, so keyboard and screen reader users do not lose their place.

Unlike a modal, a popover usually does not trap focus. Tabbing past the last control may close the panel or continue to the next element in the page, and the design system should define which behavior applies. The HTML popover attribute and the popovertarget attribute on buttons now provide native top-layer rendering, light dismiss and Escape handling, which reduces the amount of custom script needed.

  • Give the panel an accessible name, often from its visible heading.
  • Use role="dialog" for popovers that contain forms or several controls.
  • Keep text contrast at at least 4.5:1 against the panel background.
  • Ensure the panel remains usable at 200 percent zoom and on narrow screens.

Common popover design mistakes

Most popover problems come from overloading the panel or from unclear behavior. The table below maps frequent symptoms to their causes and corrections.

SymptomLikely causeFix
Panel cut off at screen edgeNo collision detectionEnable flip and shift logic
Keyboard users cannot reach contentHover-only triggerOpen on click and focus the panel
Users lose typed inputLight dismiss on a formRequire explicit cancel or save
Nested panels open on top of each otherPopovers inside popoversFlatten content or use a page
Panel feels cramped on mobileDesktop sizing reusedSwitch to a bottom sheet
Popover mistakes and fixes

As a general guideline, a popover should hold one focused task or one cluster of related information. When content grows beyond a few controls or requires scrolling, a side panel, bottom sheet or full page usually serves users better.

The idea in brief

A popover is a small box that opens next to a button when you click it. It shows extra details or a few options, and you can still see the rest of the screen around it.

Think of a sticky note placed beside a line in a document. It adds information exactly where you need it, and you can peel it off when you are done. The key point is that a popover helps with the current task without taking over the screen.

A practical scenario

A product team is redesigning the task list in a project management web application. Each task row shows an assignee avatar, and users often need to reassign work quickly. Instead of opening a separate edit page, the designers attach a popover to the avatar button with placement bottom-start, a search field and a list of up to eight team members.

During testing, keyboard users pressed Enter on the avatar, focus moved to the search field, Escape closed the panel and focus returned to the avatar. On phones narrower than 480 px, the same content opened as a bottom sheet. After release, average reassignment time fell from about 12 seconds to 4 seconds, and support requests about losing context during edits disappeared.