Closed adevendorf closed 7 years ago
Looks good to me, thanks!
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 -->
@odahcam Sounds good, thanks
Actually, an empty alt text is the recommend way for ATs to ignore them. Having no alt
is also not valid HTML.
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.