Accordion triggering element (Button) #417
Labels
Feedback
Issue raised by or for collecting input from people outside APG task force
Pattern Page
Related to a page documenting a Pattern
Milestone
A couple of thoughts:
Accordion triggering element (Button)
WAI-ARIA Roles, States, and Properties
In response to: If the button is a toggle button, it has an aria-pressed state. When the button is toggled on, the value of this state is true, and when toggled off, the state is false.
Reason: aria-pressed is not included in the accordion design pattern.
I suggest the following be added to the spec for clarity.
The difference between a button that toggles and does nothing else, like Enable Cookies, where the value is true or false, as opposed to a button that expands or collapses another visible section on the page. The first would be best suited to use aria-pressed, whereas the second is best suited to use aria-expanded. Therefore, if a toggle button contains a mechanism to convey the state of the button to the user i.e. aria-expanded, aria-pressed can be omitted.
The text was updated successfully, but these errors were encountered: