Fossils🌐 Web PlatformWeb Accessibility for Senior Engineers
ðŸĶ–DinosaurAccessibilityHTMLArchitecture

Web Accessibility for Senior Engineers

Accessibility isn't a checkbox. It's an engineering discipline that affects architecture, testing, and component design.

Web Accessibility for Senior Engineers

Senior frontend interviews increasingly test accessibility knowledge because it reveals understanding of HTML semantics, browser APIs, and user empathy.

The WCAG Framework

Web Content Accessibility Guidelines organize requirements into four principles — POUR:

PrincipleMeaningExample
PerceivableContent can be perceivedAlt text, captions, contrast
OperableUI can be operatedKeyboard nav, no time limits
UnderstandableContent is understandableLabels, error messages, consistency
RobustWorks across technologiesValid HTML, ARIA when needed

Common Interview Topics

Keyboard Navigation

Every interactive element must be reachable and operable via keyboard:

  • Tab / Shift+Tab for focus navigation
  • Enter / Space for activation
  • Escape to close modals/popups
  • Arrow keys for composite widgets (tabs, menus, lists)

ARIA — When and How

Rule 1: Don't use ARIA if native HTML does the job.

<!-- Bad -->
<div role="button" tabindex="0" onclick="...">Click me</div>
 
<!-- Good -->
<button onclick="...">Click me</button>

When ARIA is needed: Custom widgets that don't have native HTML equivalents — tabs, tree views, comboboxes, live regions.

Focus Management

SPAs break natural focus flow. Seniors implement:

  • Focus trapping in modals
  • Focus restoration when dialogs close
  • Route change announcements for screen readers
  • Skip-to-content links

Color and Contrast

  • WCAG AA: 4.5:1 contrast ratio for normal text
  • WCAG AA: 3:1 for large text (18px+ bold or 24px+)
  • Never convey meaning through color alone

Architectural Impact

Accessibility shapes architecture:

  1. Component API design — every interactive component needs aria props
  2. Routing — page transitions need focus management and announcements
  3. Error handling — form errors must be programmatically associated with inputs
  4. Testing — accessibility tests belong in CI, not just audits

Accessibility is a senior engineering concern because it requires thinking about the full user experience, not just the visual output.