WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: aria-controls

for

From: Patrick H. Lauke
Date: Jul 6, 2020 4:30AM


On 06/07/2020 10:40, Miriam Fukushima wrote:
> Hello everyone,
>
> I just read about aria-controls and that JAWS doesn't announce it.
>
> I recently saw a button to reveal more content beneath a text.
> When you press it, it slides downwards and reveals more content above
> itself.
> It has aria-expanded and aria-controls.
>
> How would be the recommendation for that kind of control to communicate
> where to find the expanded content?

The safest option is to make sure that the newly-revealed content comes
directly after the trigger element that expands/collapses it. If that's
not possible, then one option would be to programmatically move focus to
the start of the newly-revealed content.

P
--
Patrick H. Lauke

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