Accessibility in React Message
4 Sep 20263 minutes to read
The React Message component follows WCAG 2.2, Section 508, and ADA accessibility standards. This ensures that applications using the React Message component provide an accessible experience for all users, including those using assistive technologies such as screen readers and keyboard navigation.
The accessibility compliance levels for the React Message component are outlined below.
| 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 | ![]() |
- 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 Message component implements the WAI-ARIA alert pattern to ensure proper accessibility semantics. The following ARIA attributes are applied in the React Message component:
| Attributes | Purpose |
|---|---|
role=alert |
Used to convey a significant and contextual message to the user. |
aria-label |
Provides an accessible name for the close icon. |
Keyboard interaction
The React Message component supports keyboard interaction according to the WAI-ARIA alert pattern guidelines. This enables users who rely on keyboard navigation or assistive technologies to interact with React Messages effectively. The following keyboard interactions are supported:
| Press | To do this |
|---|---|
| Tab / Shift + Tab | To focus the close icon in the React Message. |
| Enter / Space | Closes the focused close icon’s React Message. |
Ensuring accessibility
Syncfusion validates the React Message component’s accessibility compliance using industry-standard tools including accessibility-checker and axe-core during continuous automated testing.
The following sample demonstrates the accessibility features of the React Message component. Open the sample in a new window to evaluate the component’s accessibility using your preferred accessibility testing tools.