~/talk

Modal Windows for Everyone

Talkat CascadiaJS 2020 · 2020-09-01..09-02· [accessibility, frontend-architecture]
slides:none on file

Uses the native dialog + role="dialog" with aria-modal="true" and a labeled heading or aria-label, buttons with aria-controls and a visible close button, plus a scrim button behind the modal to catch outside clicks. JavaScript toggles open and sets aria-hidden + inert (polyfill where needed), focuses the title/tabindex=0, traps Tab and Shift+Tab, closes on Escape, and restores focus to the opener via the aria-controls selector. CSS hides with [aria-hidden] and visibility:hidden, animates with opacity/transform, respects prefers-reduced-motion, and keeps scrolling inside a modal container; progressive enhancement uses a separate page fallback.

AI-written summary · about

  1. 0:00Introduction
  2. 1:46HTML
  3. 5:50Javascript
  4. 8:16CSS
  5. 10:52QA
~/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.