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

Unique ARIA ids created for main-menu panel #54

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

deepchandra02
Copy link

@deepchandra02 deepchandra02 commented Aug 10, 2022

The accessibility score on Create Tag page increased from 85 to 91.
It also increases the accessibility score by 6 points on every page showing the main-menu panel on the left.

Issue description

The menu panel on the left uses a for loop to render the panel headings. However, the ids were all named "headingOne". According to web.dev, using the same ID on more than one element may cause screen readers and other assistive technologies to only announce the first element with the shared ID, preventing users from accessing the later elements.

Solution Implemented

I associated the id with a for loop counter, which would associate a unique iteration number in the id and thus resolve the issue. For example, the second panel item now shows "headingOne-2" instead of "headingOne".

resolves #40

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Main-Menu: ARIA IDs are not unique
1 participant