Skip to content

Commit

Permalink
Update menu--main-menu-v3.html.twig
Browse files Browse the repository at this point in the history
  • Loading branch information
andmor- committed Sep 11, 2024
1 parent b2cdda9 commit b5e4baf
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion templates/navigation/menu--main-menu-v3.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,14 @@
{% else %}
<ul class="dropdown-menu">
{% if menu_level == 1 %}
<li class="menu-title" >{{ link(current_item.title, current_item.url, {'class': link_classes}) }}</li>
{%
set section_link_classes = [
'dropdown-item',
current_item.url.getOption('attributes').class ? current_item.url.getOption('attributes').class | join(' '),
'nav-link-' ~ current_item.url.toString() | clean_class,
]
%}
<li class="menu-title" >{{ link(current_item.title, current_item.url, {'class': section_link_classes}) }}</li>
{% endif %}
{% endif %}

Expand Down

0 comments on commit b5e4baf

Please sign in to comment.