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.
When a Menu block is limited to a certain depth, there can be some menu items that are beyond the depth allowed in the block.
Since it would be confusing to have a "collapsed" icon on a menu item that you can't expand, Menu block applies "leaf" icons to those items. But it would be nice to give those items a unique class so that themers could give them special styling; preferably not a "collapsed" icon. ;-)
So let’s add a "has-children" class to just those "leaf" menu items that actually have children.
Comments
Comment #1
JohnAlbin