Skip to content

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

Open
ADing4818 wants to merge 1 commit into
CMU-313:masterfrom
ADing4818:hw0_allend
Open

Removing Duplicate IDs on "Current user details" page - Allen Ding#149
ADing4818 wants to merge 1 commit into
CMU-313:masterfrom
ADing4818:hw0_allend

Conversation

@ADing4818
Copy link
Copy Markdown
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