Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Image link contains both alt text and surrounding link text" #169

Open
phette23 opened this issue Dec 5, 2024 · 0 comments
Open

"Image link contains both alt text and surrounding link text" #169

phette23 opened this issue Dec 5, 2024 · 0 comments
Labels

Comments

@phette23
Copy link
Member

phette23 commented Dec 5, 2024

Sa11y error:

Image link contains both alt text and surrounding link text. If this image is decorative and is being used as a functional link to another page, consider marking the image as decorative or null - the surrounding link text should suffice.

This occurs in sidebar images, LinkedImage blocks, and ProductGrid blocks wherever I wrap a link around an image with alt text and also some label text. See errors on the Library Data page, for instance. The solution is to not include the alt text at all and mark the images as decorative by setting alt="".

@phette23 phette23 added a11y accessibility frontend bug labels Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant