Accessibility in React Button
4 Sep 20263 minutes to read
The React Button 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 React Button component:
| Accessibility Criteria | Compatibility |
|---|---|
| WCAG 2.2 Support | ![]() |
| Section 508 Support | ![]() |
| Screen Reader Support | ![]() |
| Right-To-Left Support | ![]() |
| Color Contrast | ![]() |
| Mobile Device Support | ![]() |
| Keyboard Navigation Support | ![]() |
| Accessibility Checker Validation | ![]() |
| Axe-core Accessibility Validation | ![]() |
Legend:
- All features of the component meet the requirement.
- Some features of the component do not meet the requirement.
- The component does not meet the requirement.WAI-ARIA attributes
The React Button component follows the WAI-ARIA patterns to meet accessibility requirements. The following ARIA attributes are used in the React Button component:
| Attributes | Purpose |
|---|---|
aria-label |
Provides an accessible name for the icon-only React Button. |
Keyboard interaction
The React Button 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 React Button has focus, pressing the space key triggers the React Button’s click action and changes its state. |
Ensuring accessibility
The React Button component’s accessibility is validated using accessibility-checker and axe-core software tools during automated testing.
The accessibility compliance of the React Button component is shown in the following sample. Open the sample in a new window to evaluate the React Button component’s accessibility with accessibility tools.