Accessibility in Blazor TreeMap Component

26 Jun 20243 minutes to read

The Blazor TreeMap component follows commonly used accessibility guidelines and standards, such as ADA, Section 508, WCAG 2.2 standards, and WCAG roles.

The accessibility compliance for the Blazor TreeMap component is outlined below.

Accessibility Criteria Compatibility
WCAG 2.2 Support Intermediate
Section 508 Support Intermediate
Screen Reader Support Yes
Right-To-Left Support Yes
Color Contrast Yes
Mobile Device Support Yes
Keyboard Navigation Support Not Applicable
Axe-core Accessibility Validation Yes
Yes - All features of the component meet the requirement.
Intermediate - Some features of the component do not meet the requirement.
No - The component does not meet the requirement.

WAI-ARIA attributes

The Blazor TreeMap component follows the WAI-ARIA patterns to meet the accessibility. The following WAI-ARIA attributes are used in the TreeMap component:

Attributes Purpose
role=region It specifies the TreeMap areas that do not support interactive functions like selection and highlight.
role=button It specifies the TreeMap areas where interactive functions such as selection and highlight are available.
aria-label Provides an accessible name for the title, subtitle, data labels, legend title, and legend item labels.

Screen reading in TreeMap

Accessibility in the Blazor TreeMap component ensures that all users, regardless of ability or disability, can use screen reading. The following TreeMap elements will be read aloud using screen reading software, such as Narrator for Windows.

Elements Description
Data labels Reads the labels displayed on leaf items of the TreeMap.
Title Reads the title in the TreeMap.
Subtitle Reads the title below the main title content in the TreeMap.
Legend title Reads the title of the legend in the TreeMap.
Legend item label Reads the label of the legend item in the TreeMap.

Ensuring accessibility

The Blazor TreeMap component’s accessibility levels are ensured through an axe-core software tool during automated testing.

The accessibility compliance of the TreeMap component is shown in the following sample. Open the sample in a new window to evaluate the accessibility of the TreeMap component with accessibility tools.