E-mail List Archives
ARIA-hidden vs role presentation for font icons
From: Alastair Campbell
Date: Sep 13, 2013 5:08AM
- Next message: Alastair Campbell: "Re: Site Level Alt Tag validators?"
- Previous message: Patrick H. Lauke: "Re: "for Chrome devs: intro to accessibility course""
- Next message in Thread: Cameron Cundiff: "Re: ARIA-hidden vs role presentation for font icons"
- Previous message in Thread: None
- View all messages in this Thread
Hi everyone,
Hopefully a quicky: I saw a tweet recently suggesting aria-hidden to hide
font-icons from screen readers.
The HTML would be something like:
<a href="something"><i class="icon1"></i> Link text</a>
CSS is then used to insert the icon into the <i> tag.
From my reading [1], role=presentation would hide the meaning of the tag,
rather than the content. Is that right?
Wouldn't it be more appropriate to use aria-hidden=true?
Another option would be using a pseudo element with CSS content to add the
icon, which effectively hides it from screen readers to.
Cheers,
-Alastair
- Next message: Alastair Campbell: "Re: Site Level Alt Tag validators?"
- Previous message: Patrick H. Lauke: "Re: "for Chrome devs: intro to accessibility course""
- Next message in Thread: Cameron Cundiff: "Re: ARIA-hidden vs role presentation for font icons"
- Previous message in Thread: None
- View all messages in this Thread