Accessibility in React ListView component

24 Jan 20244 minutes to read

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

The accessibility compliance for the ListView component is outlined below.

Accessibility Criteria Compatibility
WCAG 2.2 Support Intermediate
Section 508 Support Intermediate
Screen Reader Support Yes
Right-To-Left Support Yes
Color Contrast Yes
Mobile Device Support Yes
Keyboard Navigation Support Yes
Accessibility Checker Validation Intermediate
Axe-core Accessibility Validation Yes
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 ListView component followed the WAI-ARIA patterns to meet the accessibility. The following ARIA attributes are used in the ListView component:

Attributes Purpose
role=list Specifies the non selectable list container.
role=listitem Specifies the role of each item in a selectable ListView and its containment within the list.
role=presentation Specifies the role of non selectable list element.
role=checkbox Indicates checkbox control along with listitem element.
aria-checked Indicates the current checked state of checkbox.
aria-label Provides an accessible name for the ListView Checkbox.
aria-disabled Indicates element is perceivable but disabled.

Keyboard interaction

The ListView component followed the keyboard interaction guideline, making it easy for people who use assistive technologies (AT) and those who completely rely on keyboard navigation. The following keyboard shortcuts are supported by the ListView component.

Keyboard shortcuts Actions
Arrow Up Move to the previous list item
Arrow Down Move to the next list item
Space Check and uncheck the targeted list from the whole list
BackSpace Get back to the previous lists if it is nested list
Home Moves focus to first list item
End Moves focus to last list item

Ensuring accessibility

The ListView component’s accessibility levels are ensured through an accessibility-checker and axe-core software tools during automated testing.

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

See also