Skip to main content
AccessibilityBrief

SVG images missing a text alternative on Lovable

What this is

3 SVG graphics marked as images have no accessible name.

Who it affects

  • Screen reader users

Standards

How to fix it

  1. Add `aria-label="…"` (or a `<title>` child referenced with `aria-labelledby`) to the `<svg role="img">`.
  2. If the graphic is decorative, remove `role="img"` and add `aria-hidden="true"` instead.

Example

Before

<svg role="img" viewBox="0 0 24 24"></svg>

After

<svg role="img" viewBox="0 0 24 24" aria-label="TODO: describe the graphic"></svg>

Or mark decorative graphics with aria-hidden="true".

On Lovable

Ask the builder to add descriptive `alt` text to every `<img>` (and `alt=""` to decorative ones); in generated React code it is the `alt` prop on `<img>`.

Other platforms

Prompt for an AI coding tool

Scan your site with AccessibilityBrief and you get a ready-to-use prompt for this problem, with the exact elements on your pages filled in.

Check your own website

Paste a web address. The free scan checks one page and shows what it finds.

Example: example.com/pricing. We scan this one page only.

More fixes

Automated testing detects only a portion of WCAG issues. Manual testing is required to assess full conformance.