WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Details Element

for

From: Léonie Watson
Date: Aug 23, 2016 8:41AM


On 23/08/2016 09:43, Jamous, JP wrote:
> Anyone has a good sample on an accessible Details element that opens to show additional information and collapses to return to the link that expanded it?
>
> Thank you.
>

The <details> and <summary> elements are not well supported by browsers
[1]. If you need a disclosure widget it may be better to create a custom
implementation, using the <button> element and suitable scripting [2].

Léonie.
[1] http://html5accessibility.com/
[2] http://ljwatson.github.io/design-patterns/disclosure1/index.html


--
@LeonieWatson tink.uk Carpe diem