Dialog dilemmas and modal mischief
summary
Browsers now ship the popover attribute (Firefox landed it two weeks ago) and the dialog element with showModal/show, so popovers work across major browsers and reduce JS for overlays. Popover adds behavior not a role; it sets aria-expanded and can be auto or manual. Top-layer placement means dialogs shown with showModal or popovers sit above Z-indexed UI, which causes layering surprises unless dialog uses showModal. Positioning often requires computePosition or similar until CSS anchor positioning arrives.
AI-written summary · about
chapters (9)
- 0:00Introduction and talk overview
- 1:46Dialogue vs popover elements
- 7:01Dialogue element explained
- 10:10Popover API explained
- 14:44Key differences between patterns
- 21:46Web standards and accessibility semantics
- 23:32Accessibility considerations
- 34:54Layering and positioning gotchas
- 44:09Key takeaways and conclusion
