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

Removing Duplicate IDs on "Current user details" page - Allen Ding #149

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

Conversation

ADing4818
Copy link
Collaborator

When Lighthouse was run on the "Current user details" page, the "Accessibility" score was 83. One of the red flags was that there were duplicate IDs in the HTML file (i.e. "headingOne" was seen throughout the file). Once I saw that the menu items (elements that had the IDs of "headingOne") were generated in a for loop, I used a template variable (forloop.counter), to stick onto "heading", so that each generated menu item would have an ID of "heading1", "heading2", etc.

After doing so and running Lighthouse again, the "Accessibility" score went up to 90 (menu_main.html).

resolve #147

…file. Originally, all of the menu item IDs were the same (i.e. all were headingOne)
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.

ARIA IDs are not unique | "Current user details" page | Score: 83
2 participants