From e579e9e61c421404d094b5fde6b79d548b36bcf1 Mon Sep 17 00:00:00 2001 From: Kris Date: Wed, 1 Jun 2022 14:18:47 -0400 Subject: [PATCH] DEV: add class name to nav-bar nav items (#16968) --- .../discourse/app/templates/components/navigation-bar.hbs | 2 +- .../app/templates/mobile/components/navigation-bar.hbs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/discourse/app/templates/components/navigation-bar.hbs b/app/assets/javascripts/discourse/app/templates/components/navigation-bar.hbs index 411302317b7..5e4f0279e9f 100644 --- a/app/assets/javascripts/discourse/app/templates/components/navigation-bar.hbs +++ b/app/assets/javascripts/discourse/app/templates/components/navigation-bar.hbs @@ -1,5 +1,5 @@ {{#each navItems as |navItem|}} - {{navigation-item content=navItem filterMode=filterMode category=category}} + {{navigation-item content=navItem filterMode=filterMode category=category class=(concat "nav-item_" navItem.name)}} {{/each}} {{custom-html name="extraNavItem" tagName="li"}} {{plugin-outlet name="extra-nav-item" connectorTagName="li" args=(hash category=category filterMode=filterMode)}} diff --git a/app/assets/javascripts/discourse/app/templates/mobile/components/navigation-bar.hbs b/app/assets/javascripts/discourse/app/templates/mobile/components/navigation-bar.hbs index 89e8be593dd..64b1f5c72ee 100644 --- a/app/assets/javascripts/discourse/app/templates/mobile/components/navigation-bar.hbs +++ b/app/assets/javascripts/discourse/app/templates/mobile/components/navigation-bar.hbs @@ -7,7 +7,7 @@ {{#if expanded}}