Skip to content

Commit

Permalink
NEXT-36413 - Added unique nav-item-{{id}} to each navigation item
Browse files Browse the repository at this point in the history
  • Loading branch information
OliverSkroblin committed May 25, 2024
1 parent 2bef6e6 commit 2750271
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

{% block layout_main_navigation_menu_home %}
{% if context.salesChannel.translated.homeEnabled %}
<a class="nav-link main-navigation-link{% if controllerAction is same as('home') %} active{% endif %} home-link"
<a class="nav-link main-navigation-link nav-item-{{ context.salesChannel.navigationCategoryId }} {% if controllerAction is same as('home') %} active{% endif %} home-link"
href="{{ path('frontend.home.page') }}"
itemprop="url"
title="{{ homeLabel|striptags }}">
Expand All @@ -32,7 +32,7 @@

{% block layout_main_navigation_menu_item %}
{% if category.type == 'folder' %}
<div class="nav-link main-navigation-link"
<div class="nav-link main-navigation-link nav-item-{{ category.id}}"
{% if treeItem.children|length > 0 %}
data-flyout-menu-trigger="{{ category.id }}"
{% endif %}
Expand All @@ -42,7 +42,7 @@
</div>
</div>
{% else %}
<a class="nav-link main-navigation-link{% if category.id == page.header.navigation.active.id or category.id in activePath %} active{% endif %}"
<a class="nav-link main-navigation-link nav-item-{{ category.id}} {% if category.id == page.header.navigation.active.id or category.id in activePath %} active{% endif %}"
href="{{ category_url(category) }}"
itemprop="url"
{% if treeItem.children|length > 0 %}data-flyout-menu-trigger="{{ category.id }}"{% endif %}
Expand Down

0 comments on commit 2750271

Please sign in to comment.