diff --git a/blocks/adp-header/adp-header.css b/blocks/adp-header/adp-header.css index bfd8516f..52585a73 100644 --- a/blocks/adp-header/adp-header.css +++ b/blocks/adp-header/adp-header.css @@ -514,6 +514,10 @@ header nav .nav-bottom { width: 100%; } +header.hide-navigation-tabs nav .nav-bottom { + display: none; +} + header nav { display: grid; grid-template-areas: @@ -526,6 +530,12 @@ header nav { box-shadow: 0 0 4px rgba(233 233 233 / 100%); } +header.hide-navigation-tabs nav { + grid-template-areas: + "nav-top"; + grid-template-rows: calc(var(--nav-height) - var(--header-banner-height)); +} + .contenthub header nav { background: var(--contenthub-header-background); border-bottom: unset; diff --git a/blocks/adp-header/adp-header.js b/blocks/adp-header/adp-header.js index b3eafe7c..16c4da45 100644 --- a/blocks/adp-header/adp-header.js +++ b/blocks/adp-header/adp-header.js @@ -106,14 +106,14 @@ function toggleMenu(nav, navSections, forceExpanded = null) { */ export default async function decorate(block) { block.textContent = ''; - + const logoUrl = document.querySelector('head meta[name="logo-link"]')?.getAttribute('content'); // decorate nav DOM const nav = document.createElement('nav'); nav.id = 'nav'; nav.innerHTML = `