WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Tried to make it accessible; now it doesn't look good

for

From: glen walker
Date: Oct 13, 2018 5:47PM


JP, yes, sorry I forgot to include that.

In addition to tabindex="-1", you either need to aria hide it or override
the keyboard handler to not let a selection navigate the link.

Setting aria-hidden="true" is the easy way to hide it so that JAWS will not
get to it. But if you still want it in the accessibility tree, and have it
announced disabled/inactive (aria-disabled="true"), then you'd need a
keyboard handler to filter out the events.

You can't set disabled="disabled" on a link because it's not valid html.