SVG Accessible Name Check

RuleSets of AccessMonitor - the validator of web accessibility practices

SVG Accessible Name Check

Description

The “SVG Accessible Name Check” evaluates whether all <svg> elements with an explicit ARIA role (e.g., role="img") have an accessible name, which is necessary for assistive technologies to convey the purpose or content of the SVG.

Example outcome

I noticed that all <svg> elements with an explicit role have accessible names.

Impact

Fixes

To address <svg> elements with an explicit role missing an accessible name:

  1. Locate the <svg> element missing an accessible name.
  2. Add an accessible name to the element (i.e., add to it one of the attributes aria-label and aria-labelledby), providing a description of the function or content of the image.
  3. If it is purely decorative, simply remove the role from it.

Resources