Accessibility

Learn how to make the most of Base UI's accessibility features and guidelines.

Accessibility is our top priority for Base UI components. However, the library cannot make your application fully accessible on its own. This page highlights the most common actions that you as a developer must take to ensure that your app is accessible to users who require assistive technologies.

Keyboard navigation

Base UI components follow the WAI-ARIA 1.2 standard, so they are accessible with a keyboard out of the box. This is important for users who have trouble using a pointing device, but also comes in handy for users who find navigating with a keyboard faster, and who expect web components to behave the same way as native operating system controls.

Specifically, interactive components can be focused using the Tab key. List-like components (such as Select and Menu) can be browsed and activated using arrow keys, Home, End, Enter/Return, and Escape.The Select and Menu also let users navigate to options that begin with a provided string by pressing alphanumeric keys.

Focus ring

While Base UI components handle keyboard navigation, it's the developer's responsibility to indicate when a component is focused and can receive keyboard input. This is usually done by styling the :focus or :focus-visible pseudoclasses. Read the WCAG guidelines on focus appearance to learn more about requirements for focus indicators.

Color contrast

Since Base UI components are unstyled, it's up to you to implement the appropriate amount of color contrast between text and background. You can use C. Liam Brown's Color Contrast Tool to measure contrast between colors in your design and ensure that they meet the minimum requirements (note that this tool uses the APCA algorithm, which is slated to become the new standard in WCAG 3).

Accessible labels

It's your responsibility to ensure that components have accessible names.

Check out the Accessibility section of each component's documentation to learn how to provide accessible labels and descriptions for each component.

Contents