Skip to content

Accordions violate accessibility requirements of WCAG 2.1 #2403

@octavpo

Description

@octavpo

When I run a scan with axe-core DevTools on a page containing an accordion made with your widget, I get a critical error indicating that for the element with a 'tablist' role "Element has children which are not allowed: [role=tabpanel]". The ARIA Authoring Practices Guide (APG) examples at https://www.w3.org/WAI/ARIA/apg/patterns/accordion/examples/accordion/ seems to show accordions shouldn't use tab roles at all.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions