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

Adding an empty alt attribute for accessibility validation #121

Merged
merged 1 commit into from Apr 20, 2017
Merged

Adding an empty alt attribute for accessibility validation #121

merged 1 commit into from Apr 20, 2017

Conversation

adevendorf
Copy link

Accessibility validation tools will report an error because the zoomed image created does not contain a required alt attribute. I've set it to an empty string.

@jackmoore
Copy link
Owner

Looks good to me, thanks!

@jackmoore jackmoore merged commit c2bc0ae into jackmoore:master Apr 20, 2017
@odahcam
Copy link

odahcam commented Apr 21, 2017

Just use a role="presentation" attribute. Presentation images has no need of an alt attribute.

A blank alt is not good for acessibility, is just more junk code.

<img src="[src]" role="presentation"><!-- valid code -->

@jackmoore
Copy link
Owner

@odahcam Sounds good, thanks

@huguestennier
Copy link

Actually, an empty alt text is the recommend way for ATs to ignore them. Having no alt is also not valid HTML.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants