WebAIM - Web Accessibility In Mind

E-mail List Archives

aria-label vs alt text on linked images

for

From: Patrick Follmann
Date: Jan 4, 2019 8:08AM


Hello,

Some colleagues and I are getting different results when using screen
readers with linked image that have no link text but have an aria-label
attribute in the a tag and an alt attribute in the img tag. (tabbing to the
image)

One colleague is hearing screen readers (VoiceOver, JAWS and NVDA with
various browsers) read only the alt text. The rest of us are hearing only
the aria-label announced.

What is expected behavior and why might we be getting different results?
We'd like to solve the mystery so we don't have conflicting results in the
future.

Thank you,

Patrick