WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: ARIA roles and multiple descendants

for

From: glen walker
Date: May 16, 2020 9:29AM


I had tried using detail/summary in the past and didn't get good results
across NVDA, JAWS, and VoiceOver with various browsers but it's been a
while. Have you tested it widely to see if things have gotten better?

On Sat, May 16, 2020 at 3:52 AM Birkir R. Gunnarsson <
<EMAIL REMOVED> > wrote:

> You can use <details>/</summary> for this
> <details>
> <summary>What is an email address?</summary>
> <p>Glad you asked.</p>
> </details>
> The summary element becomes a real button with aria-expanded, the
> paragraph with "glad you asked" is the content that is
> displayed/hidden when you toggle the button.
> Browser handles the displaying or hiding and setting the aria-expanded
> attribute to match.
>
>
>