Accessibility in Blazor Color Picker Component
4 Nov 20254 minutes to read
The Blazor Color Picker component follows accessibility guidelines and standards, including ADA, Section 508, WCAG 2.2 standards, and WCAG roles that are commonly used to evaluate accessibility.
The accessibility compliance for the Blazor Color Picker component is 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 | ![]() |
| 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 Blazor Color Picker component follows WAI-ARIA practices to support assistive technologies. The following ARIA attributes are used in the Blazor Color Picker component:
| Attributes | Purpose |
|---|---|
role |
Identifies interactive elements (for example, grid for the palette and gridcell for tiles) to convey structure to assistive technologies. |
aria-label |
Provides accessible names for interactive elements such as tiles and buttons. |
aria-selected |
Indicates the current selection state of a tile in the palette. |
aria-haspopup |
Indicates the availability of the popup element when applicable. |
aria-expanded |
Indicates whether the popup is currently expanded or collapsed. |
aria-owns |
Establishes relationships between popup and trigger elements when DOM hierarchy alone is insufficient. |
aria-disabled |
Conveys that the element is disabled and not operable. |
Keyboard interaction
The Blazor Color Picker component followed the keyboard interaction guideline, making it easy for use assistive technologies (AT) and those who completely rely on keyboard navigation. The following keyboard shortcuts are supported by the Blazor ColorPicker component.
| Windows | Mac | Actions |
|---|---|---|
| ↑ | ↑ | Moves the handler/tile up from the current position. |
| ↓ | ↓ | Moves the handler/tile down from the current position. |
| ← | ← | Moves the handler/tile left from the current position. |
| → | → | Moves the handler/tile right from the current position. |
| Enter | Enter | Applies the selected color value. |
| Tab | Tab | Moves focus to the next focusable element in the Color Picker popup. |
Ensuring accessibility
The Blazor Color Picker component’s accessibility levels are validated with axe-core using Playwright-based tests.
The accessibility compliance of the Blazor Color Picker component is demonstrated in the following sample. Open the sample in a new window to evaluate the component with accessibility tools.