From 93ef8483ef09ccd8989512667ed1bd5862159cb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20H=C3=A1la?= Date: Sun, 28 Jan 2024 18:30:26 +0100 Subject: [PATCH] Add active class to selected menu items --- frontend/static/styles.sass | 2 +- frontend/templates/menu/bootstrap4-menu-submenu.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/static/styles.sass b/frontend/static/styles.sass index e05375e..ecd230a 100644 --- a/frontend/static/styles.sass +++ b/frontend/static/styles.sass @@ -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 diff --git a/frontend/templates/menu/bootstrap4-menu-submenu.html b/frontend/templates/menu/bootstrap4-menu-submenu.html index 69ee815..c85efac 100644 --- a/frontend/templates/menu/bootstrap4-menu-submenu.html +++ b/frontend/templates/menu/bootstrap4-menu-submenu.html @@ -11,7 +11,7 @@ {% else %} - {% if item.skip_translate %}{{ item.title }}{% else %}{% trans item.title %}{% endif %} + {% if item.skip_translate %}{{ item.title }}{% else %}{% trans item.title %}{% endif %} {% endif %} {% endif %} {% endfor %}