~/talk

Dialog dilemmas and modal mischief: a deep dive into popovers

Talkat CSS Day 2023 · 2023-06-08..06-09· [web-platform, css]

Browser support timeline: popover lands in Chrome stable and Edge now, Safari 17 in the fall, Firefox actively developing. popover attribute gives built-in toggling so popover attribute requires no JavaScript but it adds behavior not semantics so authors must pick a role (dialog, listbox, menu, tooltip). positioning currently uses libraries (example: Floating UI) or calculated styles; anchor positioning is coming. dialog element exposes show and showModal so showModal creates a real modal in the top layer and only modal dialogs get automatic backdrops and keyboard focus trap. A demo site shows a lightbox and filters menu where popovers default-center and needed absolute positioning to work.

AI-written summary · about

  1. 0:00Introduction
  2. 0:37The evolving web UI
  3. 1:42Dialogue and popover specs
  4. 2:35Personal website projects
  5. 4:07User experience pitfalls
  6. 5:33Defining the dialog
  7. 7:13Dialog vs div role
  8. 8:56Understanding popovers
  9. 10:32JavaScript-free toggling
  10. 12:11Popover modes and support
  11. 13:46Modal vs non-modal
  12. 16:41Dismissal and layering
  13. 18:24Focus traps and backdrops
  14. 20:50Accessibility semantics
  15. 22:33Choosing the right role
  16. 26:59Lightbox implementation
  17. 29:19Positioning techniques
  18. 32:17Managing overlapping UI
  19. 35:26Conclusion and summary
  20. 36:41Q&A session
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.