# How do you make an interactive user interface accessible according to WCAG?

> To make an interactive UI accessible under WCAG 2.2, ensure all interactive controls are operable via keyboard alone, provide high-contrast visible focus indicators, communicate dynamic state changes through proper ARIA attributes (like aria-expanded and aria-live), maintain minimum 44×44px touch targets, and strictly honor the user's prefers-reduced-motion system preference.

Updated November 2026. Source: https://www.exodeui.com/questions/how-to-make-interactive-ui-accessible-wcag/

## Key takeaways

- All interactive controls must be reachable and operable using only the keyboard
- Visible focus states must never be removed with outline: none without a clear replacement
- Dynamic state changes must be announced to screen readers via ARIA attributes
- Touch targets must be at least 44×44px with adequate spacing to prevent mis-taps
- Respect prefers-reduced-motion by replacing large spatial translations with subtle fades

## Frequently asked questions

### Can animated interactive UIs be WCAG compliant?

Yes, provided animations do not flash rapidly (triggering seizures), can be paused or disabled, and respect prefers-reduced-motion settings.

### What is a focus trap, and when is it required?

A focus trap keeps keyboard navigation locked inside an open modal or dialog until it is dismissed, preventing keyboard users from accidentally tabbing into background content.

### How do you test interactive accessibility?

Unplug your mouse and navigate the interface using only your keyboard, test with native screen readers (VoiceOver or NVDA), and run automated checkers like axe-core.

### Does ExodeUI support accessible motion?

Yes. ExodeUI runtimes support reduced-motion detection, letting you substitute spring physics for subtle cross-fades when reduced motion is requested.

## Related

- [Accessible motion with reduced motion](https://www.exodeui.com/learn/accessible-motion-reduced-motion/)
- [Interactive UI design](https://www.exodeui.com/interactive-ui-design/)
- [React runtime documentation](https://www.exodeui.com/docs/react/)
- [State machines for UI](https://www.exodeui.com/learn/state-machine-ui/)
