Skip to content

Commit

Permalink
Adding localnav only when mobile gnav v2 is true
Browse files Browse the repository at this point in the history
  • Loading branch information
bandana147 committed Nov 19, 2024
1 parent c6a300d commit 6eafd47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/utils/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,7 @@ function decorateHeader() {
const dynamicNavActive = getMetadata('dynamic-nav') === 'on'
&& window.sessionStorage.getItem('gnavSource') !== null;
if (!dynamicNavActive && (baseBreadcrumbs || breadcrumbs || autoBreadcrumbs)) header.classList.add('has-breadcrumbs');
if (getMetadata('is-localnav') === 'true') {
if (getMetadata('is-localnav') === 'true' && getMetadata('mobile-gnav-v2') !== 'false') {
// Preserving space to avoid CLS issue
const localNavWrapper = createTag('div', { class: 'feds-localnav' });
header.after(localNavWrapper);
Expand Down

0 comments on commit 6eafd47

Please sign in to comment.