WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Using ARIA for styling?

for

From: Patrick H. Lauke
Date: Mar 6, 2017 8:15AM


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