tech-docs-gem icon indicating copy to clipboard operation
tech-docs-gem copied to clipboard

Images with blank alt text shouldn't be wrapped in anchor tags

Open tombye opened this issue 1 year ago • 0 comments

What should change

Images with blank alt text shouldn't be wrapped in anchor tags.

User need

All images are wrapped in anchor tags which link to the image on its own, including images with blank alt text.

When the images appear in-page, we tend to provide the information in them as text in the page. For example:

https://docs.publishing.service.gov.uk/manual/architecture-deep-dive.html

But that still leaves the link with an empty accessible name, because its contents are the image. Based on this WCAG rule, that breaks the following success criteria:

tombye avatar Sep 06 '24 15:09 tombye