WCAG A/AA requirement Priority: Moderate
Some graphics have no text description
Some elements are marked as images but have no text alternative, for example star ratings or icon graphics.
This text was translated automatically and has not been reviewed by a native speaker yet.
Why it matters to your customers
Screen reader users miss what the graphic shows, such as a 4.5-star rating or a "free delivery" badge, which can influence the purchase decision.
Who is affected
- blind customers
- screen reader users
How to fix it
Give every element with role="img" a name via aria-label or aria-labelledby, for example aria-label="Rated 4.5 out of 5". If the graphic is decorative, remove role="img" and hide it with aria-hidden="true".
On Shopify
Often rating stars from review apps or icons in the theme. Add names in the theme's Liquid snippets; review-app markup must be fixed by the app developer.
On Shoptet (CZ)
Often ratings or icons in the template. Report it to Shoptet or a partner.
On PrestaShop
Often rating or icon elements from modules. Fix it in the overridden module templates or report it to the module developer.
On WooCommerce
Often rating stars from WooCommerce or review plugins, or icon fonts in the theme. Fix it in child-theme templates or report it to the plugin author.
Fix it with AI
Copy this prompt into ChatGPT, Claude or Copilot and add the HTML of the element. Check the answer before you publish it.
You are an experienced web developer and accessibility specialist. Fix this accessibility problem on my website so that it meets WCAG 2.2 level AA. Website: [https://…] ## Problem: Some graphics have no text description WCAG 2.2 1.1.1 (A) Some elements are marked as images but have no text alternative, for example star ratings or icon graphics. **How to fix:** Give every element with role="img" a name via aria-label or aria-labelledby, for example aria-label="Rated 4.5 out of 5". If the graphic is decorative, remove role="img" and hide it with aria-hidden="true". ## Elements found by the automated check [Paste the HTML of the element here, or the selector from the Pandus report] ## Requirements - Change only what is needed; keep the design and how the site works. - Do not add accessibility overlays or widgets; fix the code or the content. - Show the corrected code and say in which template or file it goes. - Explain how to check the fix with the keyboard and a screen reader.
Standards
| Standard | Clause |
|---|---|
| WCAG 2.2 | 1.1.1 (A) Non-text Content |
| WCAG 2.1 | 1.1.1 (A) Non-text Content |
| WCAG 2.0 | 1.1.1 (A) Non-text Content |
| EN 301 549 4.1.1 | 9.1.1.1 |
| EN 301 549 3.2.1 | 9.1.1.1 |
| Section 508 2017 | E205.4 |
| ДСТУ EN 301 549 2022 | 9.1.1.1 |
Automated check: axe-core rule role-img-alt.
dequeuniversity.com, github.com, www.w3.org
Read next
WCAG success criterion
Guides and tools
- Alt text and WCAG: how to describe images, with examples
- HTML accessibility checker (WCAG 2.2)
- Free WCAG checker for WCAG 2.2 AA
Help articles
-
How to read a report and what to fix first
What each part of the report means and how to turn it into a to-do list for your developer.
Related checks
-
Videos have no captions
WCAG 1.2.2 A
-
Accessibility attributes are misspelt
WCAG 4.1.2 A
-
Custom menus or lists are built incorrectly
WCAG 1.3.1 A
-
Visitors cannot zoom the page on mobile
WCAG 1.4.4 AA