Skip to content

AccordionItem heading level (h2) leads to potential accessibility issues #942

@achichester

Description

@achichester

Describe the bug
When using the AccordionItem component, the heading level is always set to 2. This can lead to skipped heading levels, which is an accessibility issue.

To Reproduce
Steps to reproduce the behavior:
Use an AccordionItem component nested inside of markup that contains a heading level other than 1 (e.g. 3).

Expected behavior
The AccordionItem component should allow for dynamic heading levels to ensure that heading levels are properly nested. Possibly by passing in the heading level as a parameter?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions