HelpBot Assistant

How can I help you?

Accessibility in React Chips component

2 Mar 20264 minutes to read

The Chips component adheres to accessibility guidelines and standards, including ADA, Section 508, WCAG 2.2 standards, and WCAG roles that are commonly used to evaluate accessibility.

The following table outlines the accessibility compliance of the Chips component:

Accessibility Criteria Compatibility
WCAG 2.2 Support Yes
Section 508 Support Yes
Screen Reader Support Yes
Right-To-Left Support Yes
Color Contrast Yes
Mobile Device Support Yes
Keyboard Navigation Support Yes
Accessibility Checker Validation Yes
Axe-core Accessibility Validation Yes

Legend:

Yes - All features of the component meet the requirement.
Intermediate - Some features of the component do not meet the requirement.
No - The component does not meet the requirement.

WAI-ARIA attributes

The Chips component follows the WAI-ARIA patterns to meet accessibility requirements. The following ARIA attributes are used in the Chips component:

Attributes Purpose
role=listbox Marks the ChipList wrapper element as a listbox for screen readers.
role=option Identifies selectable chips within the ChipList (for multiple selection).
role=button Identifies a single chip that triggers actions or events.
aria-label Provides an accessible name for the chip.
aria-selected Indicates whether a chip is currently selected.
aria-disabled Indicates that a chip is perceivable but disabled and not operable.
aria-multiselectable Indicates that multiple chips can be selected from the list.

Keyboard interaction

The Chips component follows the keyboard interaction guideline, making it accessible for people who use assistive technologies and those who rely entirely on keyboard navigation. The following keyboard shortcuts are supported:

Keyboard shortcut Action
Enter / Space Selects the focused chip in the ChipList or ChipCollection.
Delete / Backspace Deletes the focused chip from the ChipList or ChipCollection.

Ensuring accessibility

The Chips component’s accessibility is validated using accessibility-checker and axe-core software tools during automated testing.

The accessibility compliance of the Chips component is shown in the following sample. Open the sample in a new window to evaluate the Chips component’s accessibility with accessibility tools.

See also