New to Telerik UI for BlazorStart a free 30-day trial

Blazor Upload Accessibility

Out of the box, the Telerik UI for Blazor Upload provides extensive accessibility support and enables users with disabilities to acquire complete control over its features.

The Upload is compliant with the Web Content Accessibility Guidelines (WCAG) 2.2 AAA standards and Section 508 requirements, follows the Web Accessibility Initiative - Accessible Rich Internet Applications (WAI-ARIA) best practices for implementing the keyboard navigation for its component role, provides options for managing its focus and is tested against the most popular screen readers.

WAI-ARIA

This section lists the selectors, attributes, and behavior patterns supported by the component and its composite elements, if any.

The Upload selected files list implements roving tabindex navigation. Meaning that only one file has tabindex=0.

SelectorAttributeUsage
.k-upload .k-upload-buttonaria-disabled=true/falseAnnounces the disabled state of the upload button.
aria-expanded=true/falseIndicates whether the controlled list of files is present/visible
aria-controls=.k-upload-files idCreates the relationship between the button and the list of selected files when the list is present. Remove the attribute when list is not present.
.k-upload inputtabindex=-1Assures that the input element inside the upload is not focusable.
aria-hidden=trueThe input needs to be hidden from the readers.
.k-upload-filesrole=listExplicitly sets the UL role to list because of https://developer.mozilla.org/en-US/docs/Web/CSS/list-style#accessibility_concerns
idUnique and deterministic id linked to the button aria-controls attribute.
.k-upload-files .k-filerole=listitemExplicitly sets the LI role to listitem because of https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/listitem_role#best_practices (note 2).
tabindex=0/-1The element should be focusable. Value should be changed dynamically based on the roving tabindex navigation.
.k-upload .k-file .k-file-validation-messagearia-live=politeAnnounces the change in the upload status of the file.
.k-upload .k-upload-actions .k-upload-actionaria-hidden=trueThe list file action buttons must be hidden from the readers.
tabindex=-1Assures that the list file action buttons are not focusable elements.

Resources

WAI-ARIA Practices

Section 508

The Upload is fully compliant with the Section 508 requirements.

Testing

The Upload has been extensively tested automatically with axe-core and manually with the most popular screen readers.

To report any accessibility issues, contact the team through the Telerik Support System.

Screen Readers

The Upload has been tested with the following screen readers and browsers combinations:

EnvironmentTool
FirefoxNVDA
ChromeJAWS
Microsoft EdgeJAWS

Keyboard Navigation

For details on how the Upload keyboard navigation works, refer to the Blazor Upload Accessibility and Keyboard Navigation Demo.

See Also