How can I help you?
Accessibility in React Floating action button component
2 Mar 20264 minutes to read
The Floating Action Button component adheres to accessibility standards, including ADA, Section 508, WCAG 2.2, and WCAG roles. These standards ensure the component is usable by all users, including those using assistive technologies.
The following table outlines the accessibility compliance for the Floating Action 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 | ![]() |
- 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
Legend:
- Fully supported
The Floating Action Button component follows WAI-ARIA patterns to ensure accessibility. The following ARIA attributes are implemented in the Floating Action Button component:
| Attributes | Purpose | Support |
|---|---|---|
aria-label |
Provides an accessible name for the icon-only Floating Action Button, essential for screen reader users. | ![]() |
aria-disabled |
Indicates the disabled state of the Floating Action Button to assistive technologies. | ![]() |
role="button" |
Defines the button semantic role for assistive technologies. | ![]() |
Keyboard interaction
The Floating Action Button component implements keyboard interaction guidelines to support users relying on keyboard navigation or assistive technologies. The following keyboard shortcuts are supported:
| Press | To do this |
|---|---|
| Enter | Activates the Floating Action Button when it has focus. |
| Space | Activates the Floating Action Button when it has focus. |
| Tab | Moves focus to the next focusable element; shift+Tab moves to previous element. |
| Escape | Closes any open tooltip or popup associated with the Floating Action Button. |
Ensuring accessibility
The Floating action button component’s accessibility levels are ensured through an accessibility-checker and axe-core software tools during automated testing.
The accessibility compliance of the Floating action button component is shown in the following sample. Open the sample in a new window to evaluate the accessibility of the Floating action button component with accessibility tools.