Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The class and ID markup is very well written and answers the most cases. But IMO there should be a class in the sub menu of a root menu item. There is only a sf-hidden class.
<a href="bla" class="sf-depth-1 menuparent active sf-with-ul" tabindex="-1">Bla Bla<span class="sf-sub-indicator"> »</span></a>
<ul class="sf-hidden" style="float: none; width: 13.6364em; display: none;">
...
</ul>
This should be something like this so we can directly point to a submenu
<ul class="sf-hidden sf-depth-1 sf-sub-menu" style="float: none; width: 13.6364em; display: none;">
...
</ul>
BTW for those who need a quick solution you can use .sf-depth-1.menuparent > ul{...}
Comments
Comment #2
LOBsTerr CreditAttribution: LOBsTerr at European Commission and European Union Institutions, Agencies and Bodies commented