Frontend & Accessibility · Updated 1 min read124 wordsby Hannah Pemberton
Practical WCAG 2.2 AA Focus Management for Complex UK Forms
Engineering accessible error summaries, live region announcements, and keyboard navigation patterns verified on real UK public-sector portals.

Accessibility is too often deferred to an automated audit checklist the week before launch. When forms fail validation silently or reset focus to the top of the document, keyboard and screen-reader users lose context immediately.
On regulated UK clinical and legal intake portals, we link every field cleanly via aria-describedby, render an explicit summary alert above invalid submissions, and verify focus ring contrast across both Light and Dark themes:
<input
id={fieldId}
aria-invalid={Boolean(errorMessage)}
aria-describedby={errorMessage ? `${hintId} ${errorId}` : hintId}
className="focus:outline-none focus:ring-2 focus:ring-[#2DD4A8]"
/>Automated checks run on every route transition in development alongside manual keyboard walk-throughs—catching contrast drops, unlabelled icon buttons, and trapped focus before code ever reaches production.


