E-mail List Archives
Re: ARIA-hidden vs role presentation for font icons
From: Alastair Campbell
Date: Sep 13, 2013 8:05AM
- Next message: Jared Smith: "Re: ARIA-hidden vs role presentation for font icons"
- Previous message: Paul Bohman: "Re: jQuery accessibility event Oct 10-11"
- Next message in Thread: Jared Smith: "Re: ARIA-hidden vs role presentation for font icons"
- Previous message in Thread: Cameron Cundiff: "Re: ARIA-hidden vs role presentation for font icons"
- View all messages in this Thread
Thanks, that's what I thought.
I had thought they were using the <i> to cater for older browsers (using it
as a background or something), but digging in further it looks like it is a
CSS ::before selector.
I suspect that making it a selector on the <a> rather than the <i> would
solve it as well, but I'll test it.
-Alastair
Cameron Cundiff wrote:
>
> Do you mean with an ::after selector with a content property? I'd go that
> route and specify the unicode for the glyph in the content property, and
> also put aria-hidden on the `i` tag in case some screen has support for CSS
> content. Caveat: I haven't used role=presentation.
>
> i::after {
> content: "/2708" /* unicode icon */
> }
>
- Next message: Jared Smith: "Re: ARIA-hidden vs role presentation for font icons"
- Previous message: Paul Bohman: "Re: jQuery accessibility event Oct 10-11"
- Next message in Thread: Jared Smith: "Re: ARIA-hidden vs role presentation for font icons"
- Previous message in Thread: Cameron Cundiff: "Re: ARIA-hidden vs role presentation for font icons"
- View all messages in this Thread