Skip to the page

Cross-cutting concerns (the O in RADIO) · core

Accessibility and internationalisation by design

Design for keyboard and screen-reader users from the start: semantic HTML first, the ARIA Authoring Practices patterns for custom widgets, managed focus and polite live regions. Design for many languages too: Intl formatting, RTL-safe layouts and translation keys instead of hard-coded strings.

The notes

What you must know

  • Target WCAG 2.2 AA. Use native elements (button, a, nav, main, dialog, input) before ARIA; 'no ARIA is better than bad ARIA'.
  • Know the APG patterns: combobox (DOM focus stays on the input, aria-activedescendant), modal dialog (Tab wraps inside, Escape closes, focus returns to the opener), tabs (arrow keys), feed (role=feed, articles, aria-busy while loading), carousel (pause control first, stop on hover/focus, aria-live off while rotating).
  • Focus: move focus on route change and when dialogs open; keep a visible focus ring; add a skip link.
  • Live regions: polite for toasts and result counts, assertive only for urgent errors; don't announce every streamed token or every live comment.
  • Motion and touch: respect prefers-reduced-motion; targets at least 24×24 CSS pixels (WCAG 2.2).
  • i18n: keys + ICU messages for plurals and gender; Intl.NumberFormat('en-IN') gives lakh grouping (₹12,34,567.50); Intl.DateTimeFormat with an explicit timeZone; Intl.RelativeTimeFormat; Intl.Segmenter to count characters correctly.
  • RTL: dir='rtl' on html, CSS logical properties (margin-inline-start), mirror icons that show direction.
  • Plan for text expansion (+30% or more), Indic script fonts, and lazy-loaded locale bundles.

The red pen

Common traps: mistake → fix

  • Mistake: Add aria-label to everything

    Fix: semantics first; extra labels can hide visible text from screen readers.

  • Mistake: A div with onClick is a button

    Fix: no keyboard, no role, no focus.

  • Mistake: toLocaleString() without a locale is fine

    Fix: it depends on the user's machine; pass locale and options.

  • Mistake: Build sentences by joining translated pieces

    Fix: word order and plurals break in other languages.

Easy to hard

Questions interviewers ask, easy to hard

  1. How do you make this custom dropdown accessible?
  2. Where does focus go when a modal opens and closes?
  3. How do you announce new search results without spamming the screen reader?
  4. How would you support Hindi, Tamil and Arabic in this app?

Practise

Practise with these questions

Your first interview is free

Sign up and start with a 15-minute interview with the full report, and an English conversation. No card needed.

Start your free interview