GoogleChrome / GoogleChrome/lighthouse

SVGs failing due to lack of alt attribute

Open
#2,425 8 comments 0 reactions 0 assignees View on GitHub
bug P3 upstream-action-required
Dominant language
JavaScript
Stars
30.8k
Forks
9.8k
Avg merge
1d 20h
Merged PRs (30d)
19

Description

My report suggests that SVGs should contain an `alt` attribute but the recommended way to do this is with a `title` and/or `desc` element.

Adding either an `alt` attribute or a `title` element to SVGs being audited still results in a failure:
screen shot 2017-06-02 at 22 32 51

Adding `title` elements similarly fails:
screen shot 2017-06-02 at 22 33 44

Adding both results in the same failure.

So the question is, what will it take to make this pass in Lighthouse and should the recommendation documentation be updated to reflect this?

https://developers.google.com/web/tools/lighthouse/audits/alt-attribute

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.