Component
Popover hint
Published on
Description
A popover hint is a Popover with popover="hint". Opening a hint closes other hints but leaves open auto popovers alone, so a hint can explain a control inside a menu without dismissing the menu.
Browsers without hint support treat it as manual, so the content still opens and closes with its trigger.
Example
Accessibility
- Open it with a
<button popovertarget>so the trigger is keyboard operable and exposes its expanded state. - Where
hintis supported, Escape and clicking outside close it; elsewhere the trigger toggles it. - Keep hint content short and non-interactive.
References
Related
Variables
id— referenced by the trigger inpopovertargetchildren— the hint content