aria-haspopup
An ARIA property on a trigger saying that it opens a popup and what kind: menu, listbox, tree, grid or dialog.
In more detail
A popover trigger uses aria-haspopup="dialog" together with aria-expanded. Tooltip triggers do not use it, because a tooltip is not interactive.
Related terms
- popover — A floating panel opened by an explicit click that can contain interactive content such as forms, links or a date picker.
- aria-expanded — An ARIA state on a button or trigger saying whether the content it controls is currently shown.
- menu role — The ARIA role for an application-style list of actions, like a File or Edit menu, navigated with arrow keys.
Taught in
- Floating Primitives: Popovers, Tooltips & Positioning — Design Systems & Component Engineering