How can I help you?
Accessibility in React ButtonGroup component
2 Mar 20263 minutes to read
The ButtonGroup 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 ButtonGroup 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.Keyboard interaction
The ButtonGroup 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:
Normal behavior
| Press | To do this |
|---|---|
| Tab | Focuses the next button in the ButtonGroup. |
| Enter/Space | Activates the focussed button in the ButtonGroup. |
Checkbox behavior
| Press | To do this |
|---|---|
| Tab | Focuses the next button in the ButtonGroup. |
| Space | Activates the focused button in the ButtonGroup. |
Radio button behavior
| Press | To do this |
|---|---|
| Tab | Focuses the active button in the ButtonGroup. |
| Right/Left | Activates the next or previous button in the ButtonGroup. |
Ensuring accessibility
The ButtonGroup component’s accessibility is validated using accessibility-checker and axe-core software tools during automated testing.
The accessibility compliance of the ButtonGroup component is shown in the following sample. Open the sample in a new window to evaluate the ButtonGroup component’s accessibility with accessibility tools.