BASELibraryCatalogs

Accessible frontend: components and behavior checks

Accessibility depends on the finished interface: semantics, focus order, text, scaling, and responses to actions. Ready-made primitives help you avoid rewriting basic behavior, but styling or composition can break it. Test components in the states visitors will encounter.

Choose a component foundation

Radix UI and React Aria provide behavior, focus management, and keyboard controls for components you style yourself. coss ui offers a ready-made, composable React design system built on Base UI. Your choice depends on whether you need a styled foundation or your own visual system.

With one dialog, test opening, initial focus, closing, and returning focus to its button. With a menu, test keyboard movement and selection. These cases help you assess compatibility with the app before migrating dozens of screens.

  • Use the right element for the action: a button, link, or input.
  • Preserve accessible names and visible focus when changing styles.
  • Do not use ARIA as a substitute for working keyboard behavior.

Show states and test the workflow

Storybook lets you examine a component in isolation: long text, errors, empty data, disabled states, and loading. This exposes problematic states before integration into a whole screen. Choose examples with real content constraints, not just an ideal card.

Playwright captures repeatable browser actions. Test the user's path: open a form, trigger an error, fix it, and complete the action. Motion animations should respect reduced motion; changing movement must not hide the result or interfere with controls.

  • Complete the main workflow using only the keyboard.
  • Test long labels, enlarged text, and narrow screens.
  • Test errors and focus restoration after interface layers close.

Distinguish tool support from the finished result

Accessible primitives or passing browser tests do not establish full application accessibility. Manually assess text and interaction order, and test with the assistive technologies in use. Document the actual scope of testing in the project.

The listed libraries are open source; coss ui's MIT license applies to specific directories in the monorepo. Storybook can run locally, while Chromatic's cloud visual checks have separate terms. Check the licenses of the packages and services you actually connect.

  • Do not claim standards compliance from a single automated report.
  • Test a screen reader with the finished interface, not only the library example.
  • Avoid unnecessary announcements for decorative elements and preserve text explanations for meaningful ones.

Tools and why to choose them

  • Radix UI Primitives

    Use unstyled React primitives with focus management, keyboard controls, and ARIA.

  • React Aria

    An alternative component foundation for your own visual system.

  • coss ui

    Use a ready-made React design system on Base UI, accounting for the licenses of specific directories.

  • Storybook

    Explore isolated component states, documentation, and examples of edge-case content.

  • Playwright

    Repeat user actions and check browser interface behavior.

  • Motion / Framer Motion

    Animate state transitions with deliberately designed reduced-motion behavior.

How BASE selects and reviews information

Other topics · Entire library