Skip to content

Commit

Permalink
Merge pull request #68 from darkodevubc/patch-1
Browse files Browse the repository at this point in the history
Fixes issue #59: Main menu links are expanded even when their childre…
  • Loading branch information
joelpittet authored Oct 23, 2023
2 parents 3a56e60 + c61ab95 commit 48d7094
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion templates/navigation/menu--main.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@
<li{{ item.attributes.addClass(classes, 'expanded', 'dropdown').removeClass('menu-item') }}>
<div class="btn-group">
{{ link(item.title, item.url, item.attributes.addClass('btn')) }}
<button class="btn dropdown-toggle" data-toggle="dropdown"><span class="ubc7-arrow blue down-arrow"></span></button>
{% if item.below %}
<button class="btn dropdown-toggle" data-toggle="dropdown"><span class="ubc7-arrow blue down-arrow"></span></button>
{% endif %}
{% else %}
<li{{ item.attributes.addClass(classes, 'item').removeClass('menu-item') }}>
{{ link(item.title, item.url, {'class': ['navbar-link']}) }}
Expand Down

0 comments on commit 48d7094

Please sign in to comment.