Skip to content

Commit

Permalink
Add active class to selected menu items
Browse files Browse the repository at this point in the history
  • Loading branch information
pehala committed Jan 28, 2024
1 parent 52e1e76 commit 9c5438c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/static/styles.sass
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ $border-color: $bgHighlight
.dropdown-menu
--bs-dropdown-link-color: #{$colDefault}
--bs-dropdown-link-hover-color: #{$colHighlight}
--bs-dropdown-link-active-color: #{$colHighlight}
--bs-dropdown-link-active-bg: #{$colDefault}

//.chord
// position: absolute
Expand Down
2 changes: 1 addition & 1 deletion frontend/templates/menu/bootstrap4-menu-submenu.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<button type="submit" class="btn-link dropdown-item">{% if item.skip_translate %}{{ item.title }}{% else %}{% trans item.title %}{% endif %}</button>
</form>
{% else %}
<a class="dropdown-item" href="{{ item.url }}">{% if item.skip_translate %}{{ item.title }}{% else %}{% trans item.title %}{% endif %}</a>
<a class="dropdown-item {% if item.selected %}active{% endif %}" href="{{ item.url }}">{% if item.skip_translate %}{{ item.title }}{% else %}{% trans item.title %}{% endif %}</a>
{% endif %}
{% endif %}
{% endfor %}
Expand Down

0 comments on commit 9c5438c

Please sign in to comment.