E-mail List Archives
Re: Implementing aria-hidden via JavaScript
From: Jared Smith
Date: Mar 23, 2014 4:16PM
- Next message: Chagnon | PubCom: "Re: Outdoor captioning contrast"
- Previous message: Karl Groves: "Re: Outdoor captioning contrast"
- Next message in Thread: None
- Previous message in Thread: Karl Groves: "Re: Implementing aria-hidden via JavaScript"
- View all messages in this Thread
Karl Groves wrote:
> If for some reason you're dead set to have aria-hidden on there, you can
> simply modify this using jQuery's attr() method.
Or you can add
[aria-hidden=true] {display:none;}
to your CSS and just set the aria-hidden attribute to true/false with jQuery.
I tend to prefer this approach as it allows you to focus on setting
semantic attribute values in your scripting and let CSS handle the
visual presentation/hiding.
Jared
- Next message: Chagnon | PubCom: "Re: Outdoor captioning contrast"
- Previous message: Karl Groves: "Re: Outdoor captioning contrast"
- Next message in Thread: None
- Previous message in Thread: Karl Groves: "Re: Implementing aria-hidden via JavaScript"
- View all messages in this Thread