Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
achichester opened this issue Nov 13, 2024 · 0 comments
Labels
area-accordion enhancement New feature or request

Comments

@achichester
Copy link

achichester commented Nov 13, 2024

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?

@gvreddy04 gvreddy04 added area-accordion enhancement New feature or request labels Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-accordion enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants