We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
current
The parent item in the menu does not recieve the current class when there are child links in a mega menu.
Below is my megamenu structure:
<ul data-sm-options="{markCurrentItem: true, markCurrentTree: true}" id="smartmenus-1" class="sm sm-simple smartmenus-behavior-processed" data-smartmenus-id="154942382694552"> <li class="our-work"> <a href="/our-work" title="" class="has-submenu" id="sm-154942382694552-3" aria-haspopup="true" aria-controls="sm-154942382694552-4" aria-expanded="false">Our Work<span class="sub-arrow"></span></a> <ul class="mega-menu sm-nowrap" id="sm-154942382694552-4" role="group" aria-hidden="true" aria-labelledby="sm-154942382694552-3" aria-expanded="false" style="width: auto; display: none; top: auto; left: 0px; margin-left: 0px; margin-top: 0px; min-width: 10em; max-width: 20em;"> <li> <div class="item-list"> <ul class="mega-menu-child"> <li class="first"><a href="/our-work/planning">Planning</a></li> <li><a href="/our-work-planning/regional-housing-need-allocation-rhna">Regional Housing Need Allocation (RHNA)</a></li> <li><a href="/our-work-planning/housing-elements">Housing Elements</a></li> <li><a href="/our-work-planning/accessory-dwelling-units">Accessory Dwelling Units</a></li> <li><a href="/our-work-planning/casa%E2%80%94-committee-house-bay-area">CASA—The Committee to House the Bay Area</a></li> <li><a href="/our-work-planning/priority-development-areas">Priority Development Areas</a></li> <li><a href="/our-work-planning/priority-conservation-areas">Priority Conservation Areas</a></li> <li><a href="/our-work-planning/east-bay-corridors-initiative">East Bay Corridors Initiative</a></li> <li><a href="/our-work-planning/resilience">Resilience</a></li> <li><a href="/our-work-planning/horizons">Horizons</a></li> <li><a href="/our-work-planning/plan-bay-area">Plan Bay Area</a></li> <li class="last"><a href="/our-work-planning/economic-development-district">Economic Development District</a></li> </ul> </div> <div class="item-para"> <p>something</p> </div> <div class="item-para"> <p>something else</p> </div> </li> </ul> </li> <li class="meetings--events"> <a href="/meetings" title="" class="has-submenu" id="sm-154942382694552-7" aria-haspopup="true" aria-controls="sm-154942382694552-8" aria-expanded="false">Meetings & Events<span class="sub-arrow"></span></a> <ul data-sm-options="{markCurrentItem: true, markCurrentTree: true}" id="sm-154942382694552-8" role="group" aria-hidden="true" aria-labelledby="sm-154942382694552-7" aria-expanded="false" style="width: auto; min-width: 10em; display: none; max-width: 20em; top: auto; left: 0px; margin-left: 0px; margin-top: 0px;" class="sm-nowrap"> <li class="first live-webcasts"><a href="/meetings-events/live-webcasts">Live Webcasts</a></li> <li class="last meeting-archives"><a href="/meetings-events/meeting-archives">Meeting Archives</a></li> </ul> </li> <li class="last news"><a href="/news" title="" class="has-submenu current" id="sm-154942382694552-9" aria-haspopup="true" aria-controls="sm-154942382694552-10" aria-expanded="false">News<span class="sub-arrow"></span></a></li> </ul>
Follow up to #86
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The parent item in the menu does not recieve the
current
class when there are child links in a mega menu.Below is my megamenu structure:
Follow up to #86
The text was updated successfully, but these errors were encountered: