Out of the Shadows & into the Light: making custom Web Components reusable, Front-end developer ...
summary
Explains how native Web Components plus ES modules actually get reused across Drupal, WordPress and apps, with concrete techniques: use declarative markup for server‑rendered base, progressively enhance with JavaScript, declare an open shadow DOM so global CSS and ARIA can reach it, expose styling via CSS variables and parts/slots, and build accessible controls (focus, tabindex, aria) and progressive accordions. Shows Lit and the Lion framework as starting codebases, and recounts a real project where refactoring alerts took two weeks until components were opened and restructured.
AI-written summary · about
chapters (14)
- 0:00Introduction and welcome
- 2:36What are web components
- 8:41Shadow DOM: friend or foe
- 13:20Progressive enhancement with web components
- 19:49Slots and parts for styling
- 21:35Why use web components
- 27:35Styling web components from outside
- 33:27Web components across platforms
- 35:58Web components and SASS
- 40:30Practical challenges with web components
- 44:08Web components vs iframes
- 44:52Critical render path impact
- 48:23Team workflow with web components
- 49:07Q&A and resources
