WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Role="presentation"

for

From: Birkir R. Gunnarsson
Date: May 8, 2018 5:51AM


steve is right.
In the following example, a screen reader will read the word "foo"
with no context.
<a href="#" role="presentation" tabindex="-1">Foo</a>
It's the same as
<span>foo</span>

If you instead use tabindex="-1" and aria-hidden="true" you totally
hide the thingy.



On 5/8/18, Steve Faulkner < <EMAIL REMOVED> > wrote:
> you will need aria-hidden=true as role=presentation will only hide the link
> semantics but not the link text
>
>
>
> --
>
> Regards
>
> SteveF
> Current Standards Work @W3C
> <http://www.paciellogroup.com/blog/2015/03/current-standards-work-at-w3c/>;
>
> On 8 May 2018 at 12:14, Kakarla Meharoon < <EMAIL REMOVED> > wrote:
>
>> Hi,
>>
>> For the duplicate link which is redundant, if we add role=" presentation"
>> and tabindex=-1 screen reader will ignore the link?
>> >> >> >> >>
> > > > >


--
Work hard. Have fun. Make history.