~/talk

Building tabs in web components

Talkat All Day Hey! 2024 · on Thursday, 2024-05-02· [web-platform, component-design]
links:none on file
slides:none on file

Built a reusable tabs component for a design system using web components on top of Lit, covering ARIA roles, keyboard/mouse and programmatic control via attributes, and supporting about 40 components across products. Selection sync uses a MutationObserver so changing attributes at runtime updates UI. CSS includes a pseudo-element bold trick to avoid layout shift and a scroll-shadow technique for overflow. Code examples show vanilla JS APIs, TypeScript variants, and working accessibility behaviors.

AI-written summary · about

  1. 0:00Introduction and speaker intro
  2. 2:27Researching tabs UI
  3. 6:00Building tabs with web components
  4. 8:11Accessibility controls
  5. 10:41Programmatic tab control
  6. 12:08CSS tricks for tabs
  7. 14:38Closing and resources
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.