FSD Frontend System Design

Chapter 8 · Accessibility

Interview drill

7 questions from this chapter. Answer each one out loud first, then open it to compare.

  1. 8.1"How do you approach accessibility in a component library?"
    • Start from semantic elements and only build custom widgets when the platform genuinely lacks one.
    • Bake keyboard interaction and focus management into each component, so consumers get it by default.
    • Automate what's automatable (axe in CI), and keep a manual keyboard-and-screen-reader pass for new patterns.

    Review 8.1 Accessibility Overview →

  2. 8.2"How do you test keyboard accessibility?"
    • Put the mouse away and Tab through the whole flow: everything interactive must be reachable, activatable, and visibly focused.
    • Check the order matches the visual layout, since CSS can reorder without changing the DOM.
    • For each custom widget, verify the expected keys — Escape on dialogs and arrows on composite widgets are the usual gaps.

    Review 8.2 Keyboard Accessibility →

  3. 8.3"How do you make a custom dropdown screen-reader friendly?"
    • Use <select> if the design allows; the platform version is correct everywhere for free.
    • If not: role="combobox" with aria-expanded, aria-controls, aria-activedescendant, plus the full arrow/Enter/Escape key contract.
    • Announce results with a polite live region, and verify in VoiceOver and NVDA — the specs agree, the implementations don't always.

    Review 8.3 Screen Reader →

  4. 8.4"Your SPA is accessible on first load but not after navigation. Why?"
    • Client-side routing swaps the DOM without the focus and announcement reset a real navigation performs.
    • Fix by moving focus to the new heading, updating document.title, and announcing via a polite live region.
    • The same class of bug hits deletions — focus left on a removed node falls back to <body> and the user loses their place.

    Review 8.4 Focus Management →

  5. 8.5"Design gives you a palette that fails contrast. What do you do?"
    • Bring numbers, not opinions: show the measured ratio and which text sizes fail.
    • Propose a derived accessible shade for text and controls, keeping the brand colour for large type and fills.
    • Add the check to CI or design tooling so the next palette doesn't repeat it.

    Review 8.5 Color Contrast →

  6. 8.6"Lighthouse gives us 100. Are we accessible?"
    • No — automated tools cover roughly a third of the criteria, mostly static markup issues.
    • They can't judge whether alt text is correct, whether tab order makes sense, or whether focus survives an action.
    • Pair automation in CI with a manual keyboard and screen-reader pass on each new flow.

    Review 8.6 Accessibility Tools →

  7. 8.7"You inherit a product with 300 accessibility violations. Where do you start?"
    • Triage by blocked tasks first: anything that stops a keyboard or screen-reader user completing a core flow.
    • Map violations to components — a handful of design-system fixes usually resolves the majority of instances.
    • Then gate it in CI and add it to the definition of done, so the backlog shrinks instead of refilling.

    Review 8.7 How to fix accessibility →