Accessibility in Blazor Sparkline Component

4 Nov 20253 minutes to read

The Blazor Sparkline component follows accessibility guidelines and standards, including ADA, Section 508, WCAG 2.2, and WCAG roles.

The table below outlines accessibility compliance for the Blazor Sparkline component.

Accessibility Criteria Compatibility
WCAG 2.2 Support Yes
Section 508 Support Yes
Screen Reader Support Yes
Right-To-Left Support Yes
Color Contrast Yes
Mobile Device Support Yes
Keyboard Navigation Support Yes
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 component follows WAI-ARIA patterns for accessibility. The following ARIA attributes are used:

  • img (role)
  • region (role)
  • aria-label (attribute)
  • aria-hidden (attribute)
  • aria-pressed (attribute)

Keyboard Interaction

The component supports keyboard interaction guidelines, making it accessible for users relying on assistive technologies (AT) or keyboard navigation. Supported keyboard shortcuts:

Windows Mac Description
Tab Tab Moves focus to the next element in the Sparkline.
Shift + Tab + Tab Moves focus to the previous element in the Sparkline.
Moves focus to the data point right side from the selected point.
Moves focus to the data point right side from the selected point.
ESC ESC Cancels the tooltip for the data point.
Ctrl + P + P Prints the Sparkline.

Ensuring Accessibility

Accessibility is validated using axe-core with Playwright tests.

Evaluate accessibility in the Blazor Sparkline component by opening the sample in a new window and using accessibility tools.

See Also