Rethinking Tooltips with Interest Invokers and Popover API
summary
Popover API is now baseline in major browsers so tooltips can avoid custom JS by using declarative popover attributes, built-in positioning fallbacks and auto z‑layering; hover hints use interest-for (hover/focus) but only Chrome/Edge fully support it so polyfills are often needed. Use showPopover()/hidePopover() or events like beforetoggle/aftertoggle for programmatic control, add tabindex=0 to make content focusable for screen readers, and use allow-discrete to animate entry from display:none.
AI-written summary · about
chapters (21)
- 0:00Introduction and speaker background
- 1:13What are tooltips and their use cases
- 4:46Limitations of traditional tooltips
- 5:06Introducing the Popover API
- 6:11Positioning and overflow with Popover
- 8:19Anchor positioning and fallback options
- 11:27Top layer rendering and backdrop styling
- 13:13Popover backdrop and non-blocking behavior
- 14:35Animating popovers with allow-discrete
- 16:49Types of popovers: auto, hint, manual
- 19:16Interest Invokers for hover-based tooltips
- 21:06ID management in frameworks
- 22:30Combining Interest Invokers and Popover
- 24:59JavaScript control of popovers
- 27:28Accessibility considerations for popovers
- 32:06Fixing focus and announcement issues
- 37:07Testing with screen readers
- 38:30Future possibilities with Popover API
- 39:11Customizable select elements
- 43:25Current state and resources
- 44:30Q&A and closing remarks
