Skip to content
Snippets Groups Projects

Fixed issue related to Bootstrap 5 theme.

1 file
+ 9
1
Compare changes
  • Side-by-side
  • Inline
+ 9
1
@@ -53,7 +53,15 @@
{{ item.attributes.setAttribute('style', menu_attributes.item.style) }}
{% endif %}
>
{{ link(item.title, item.url, menu_attributes) }}
{% if item.in_active_trail %}
{{ link(item.title, item.url, menu_attributes|merge({'class': 'is-active'})) }}
{% else %}
{% if menu_attributes.link is empty %}
{{ link(item.title, item.url) }}
{% else %}
{{ link(item.title, item.url, menu_attributes.link) }}
{% endif %}
{% endif %}
{% if item.below %}
{{ menus.menu_links(item.below, attributes, menu_level + 1) }}
{% endif %}
Loading