HelpBot Assistant

How can I help you?

Accessibility in React CheckBox component

2 Mar 20263 minutes to read

The CheckBox 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 CheckBox 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 CheckBox component follows the WAI-ARIA patterns to meet accessibility requirements. The following ARIA attributes are used in the CheckBox component:

Attributes Purpose
aria-disabled Indicates that the CheckBox element is perceived but disabled, so it is not editable or operable by the user.

Keyboard interaction

The CheckBox 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 shortcut is supported:

Press To do this
Space When the CheckBox has focus, pressing the Space key toggles the checkbox between checked and unchecked states.

Ensuring accessibility

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

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

See also