Skip to content

Commit

Permalink
fix: Add active class dropdown menus in nav (#158)
Browse files Browse the repository at this point in the history
  • Loading branch information
fsbraun authored Oct 4, 2023
1 parent 1ec51e0 commit 56ee1ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion djangocms_frontend/templates/bootstrap5/dropdown.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
{% if child.get_menu_title|first == ' ' %}
<div class="dropdown-divider"></div>
{% endif %}
<a class="dropdown-item" href="{{ child.get_absolute_url }}"><span>{{ child.get_menu_title }}</span></a>
<a class="dropdown-item{% if child.selected %} active{% endif %}" href="{{ child.get_absolute_url }}"><span>{{ child.get_menu_title }}</span></a>
{% endfor %}

0 comments on commit 56ee1ea

Please sign in to comment.