When a menu is rendered in the ul tag we can easily find the nav and menu class what is practical to use to target our styles; however if we need to target specific styles to specific menus we don't have the posibility to target that concrete menu.

In the template "templates/menu/menu.html.twig" the menu_name value is available but not included in the macro.

This is a patch that includes the menu machine name as attribute and will help with this need.

Files: 

Comments

casivaagustin created an issue. See original summary.

casivaagustin’s picture