umbraco / Umbraco-CMS.Accessibility.Issues

6 stars 1 forks source link

Dashboard image links - redundant alternative text #30

Open umbrabot opened 2 years ago

umbrabot commented 2 years ago

Steps to replicate:

  1. Access the opening/home dashboard
  2. Links with images have redundant controls that are repeated
  3. Should be grouped and alternative text removed if needed

Issue: Redundant alternative text: The alternative text for an image is the same as nearby or adjacent text.

Redundant alternative text - Images for links have the same alt text as the heading text

Why it matters: When two images have the same alternative text, this often causes redundancy or indicates incorrect alternative text.

How to fix: Ensure that the alternative text for each image or image button is appropriate while removing unnecessary redundancy. If the content of the image is already conveyed elsewhere (through text or the alternative text of a nearby image) or if the image does not convey content, the image may generally be given empty/null alternative text (alt=""). Image buttons always convey a specific function, and thus cannot be given null alternative text.

W3 reference: https://www.w3.org/WAI/WCAG21/Understanding/non-text-content.html