WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Using ARIA for styling?

for

From: Preast, Vanessa
Date: Mar 6, 2017 8:24AM


Thank you to both Jonathan and Patrick!

Best,
Vanessa

-----Original Message-----
From: WebAIM-Forum [mailto: <EMAIL REMOVED> ] On Behalf Of Patrick H. Lauke
Sent: Monday, March 06, 2017 9:16 AM
To: <EMAIL REMOVED>
Subject: Re: [WebAIM] Using ARIA for styling?

On 06/03/2017 15:13, Patrick H. Lauke wrote:
[...]
> That's an excellent idea not only because it saves you having to also
> add/remove an extra class for styling,
[...]

and in my haste to reply to the CSS part I actually overlooked the fact that yes, as Jonathan points out, aria-selected isn't quite what you want. But the CSS part of my advice remains valid, adapted to the correct ARIA of course...

P
--
Patrick H. Lauke

www.splintered.co.uk | https://github.com/patrickhlauke http://flickr.com/photos/redux/ | http://redux.deviantart.com
twitter: @patrick_h_lauke | skype: patrick_h_lauke