WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Screenreader Combo Failing aria-labelledby

for

From: Aditya
Date: May 5, 2021 4:59PM


Im using aria-label instead of alt and role=img where ever svg is involved. Either <svg> or src is svg

That's working for me.

Sent from my iPhone

> On May 5, 2021, at 10:48 AM, Patrick H. Lauke < <EMAIL REMOVED> > wrote:
>
>> On 05/05/2021 16:44, <EMAIL REMOVED> wrote:
>> Are there any issues with inserting an SVG file as the source of an <img> and putting alt text on the image?
>
> Last time I checked, VoiceOver will suddenly decide that the <img> is not an image anymore and not announce the alt text, unless you then backfill it with an explicit role="img"
>
> <img role="img" src="foo.svg" alt="blah">
>
> P
> --
> Patrick H. Lauke
>
> https://www.splintered.co.uk/ | https://github.com/patrickhlauke
> https://flickr.com/photos/redux/ | https://www.deviantart.com/redux
> twitter: @patrick_h_lauke | skype: patrick_h_lauke
> > > >