Skip to content

Accordion > Remove tab semantics

The following was discovered during the initial accessibility audit for accordions &5663 (closed).

Problem

Currently, accordions are coded more like a tab panel, but they shouldn’t be.

  • role=“tablist" shouldn’t be used on parent container.
  • The button has role=“tab” and type=“button” which are not necessary.
  • The content panel shouldn’t have role="tabpanel"

Solution

Edited by Jeremy Elder