ARIA IDs are not unique HELP for hamburger menu: Accessibility HELP

I don’t understand why these items are failing in accessibility, in the lighthouse audit.

so here is what i could figure out. it seems like the link item and the list

Alight my suspicion was correct, inside of the site-nav.liquid are these lines of code


            {{ link.title | escape }}
            
        
        

          {% for childlink in link.links %}
            {% if childlink.links != blank %}
            {% assign child_index = forloop.index %}

in line 5 you can see i changed

aria-controls=“MenuParent-{{ parent_index }}” to aria-controls=“MenuParentAC-{{ parent_index }}”

That fixed it in my lighthouse

I implemented the changes to the code that you suggested. Lighthouse is still picking them up as not having unique aria ID’s. Does the AC need to be added to the id=“MenuParent-{{parent_index}}”? Does the AC need to be added to the aria-controls=“MenuChildren-{{parent_index}}-{{child_index}}” ?

What theme do you have ?

Supply