Skip to content

Commit

Permalink
KAW-7904 Fix transparent header when click on models
Browse files Browse the repository at this point in the history
  • Loading branch information
TomaszDziezykNetcentric committed Sep 12, 2024
1 parent c0d50bd commit a1704c4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions blocks/header/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ function toggleSubNav(navSection, navSections) {
const expanded = navSection.getAttribute('aria-expanded') === 'true';
toggleAllNavSections(navSections);
navSection.setAttribute('aria-expanded', expanded ? 'false' : 'true');

if (!expanded) {
document.querySelector('header').classList.remove('transparent');
}
}

function checkForActiveLink(navSections) {
Expand Down

0 comments on commit a1704c4

Please sign in to comment.