Accessibility in Blazor Input Mask Component
4 Nov 20253 minutes to read
The Blazor MaskedTextBox component followed the 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 MaskedTextBox 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 MaskedTextBox includes comprehensive WAI-ARIA support to ensure compatibility with screen readers and other assistive technologies. This component is designed with reference to the WAI-ARIA Authoring Practices.
The MaskedTextBox uses the textbox role and the following ARIA properties, based on state and configuration:
| Property | Functionality |
|---|---|
| aria-label / aria-labelledby | Provides an accessible name for the MaskedTextBox. |
| aria-describedby | Associates helper or error text with the MaskedTextBox for screen reader announcement. |
| aria-invalid | Indicates that the current value fails validation. |
| aria-required | Indicates that input is required. |
| aria-disabled | Indicates that the MaskedTextBox is disabled. |
| aria-readonly | Indicates that the value cannot be changed by the user. |
| aria-multiline | Indicates whether the textbox supports multiple lines (typically false for MaskedTextBox). |
Ensuring accessibility
The Blazor MaskedTextBox component’s accessibility levels are ensured through an axe-core software tool during automated testing.
The accessibility compliance of the MaskedTextBox component is shown in the following sample. Open the sample in a new window to evaluate the accessibility of the MaskedTextBox component with accessibility tools.