The text of almost every accordion is a heading. As the APG states:
An accordion is a vertically stacked set of interactive headings that each contain a title, content snippet, or thumbnail representing a section of content. The headings function as controls that enable users to reveal or hide their associated sections of content.
The use of <summary> and <details> results in a native HTML accordion that does not expose the summary text as a heading. Does this mean that any use of <summary> where the text serves as a heading fails 1.3.1?
The text of almost every accordion is a heading. As the APG states:
The use of
<summary>and<details>results in a native HTML accordion that does not expose the summary text as a heading. Does this mean that any use of<summary>where the text serves as a heading fails 1.3.1?