Keyboard interaction
| Key | Action |
|---|---|
| Enter or Space on the trigger | Opens or closes the popover. |
| Tab | Moves into an open popover, which comes right after its trigger. |
| Escape | Closes the popover and returns focus to its trigger, or hides the hovercard. |
Accessibility notes
- The popover is a non-modal
dialog: name it witharia-labeloraria-labelledby. Its trigger getsaria-haspopupand the browser’saria-expanded. - The hovercard is a
tooltipand its trigger’saria-describedby, so its text is read with the trigger. Keep controls out of it; use a popover for those. - The hovercard meets WCAG 1.4.13: Escape hides it without moving focus, the pointer can move onto it, and it stays while hovered or focused.