WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: ARIA-hidden vs role presentation for font icons

for

From: Jared Smith
Date: Sep 13, 2013 8:37AM


On Fri, Sep 13, 2013 at 8:05 AM, Alastair Campbell wrote:

> I suspect that making it a selector on the <a> rather than the <i> would
> solve it as well, but I'll test it.

Yes, this would work to inject the character, but then you wouldn't
have an element to which aria-hidden can be attached to hide the
character. You wouldn't want aria-hidden on the link or all of the
link content would be hidden. Besides, aria-hidden will (or at least
should) be ignored on focusable elements, such as links. So it seems
the <i> (I'd prefer a <span>) is necessary if you want to inject the
character inside the link AND have it hidden with aria-hidden.

Jared