Skip to content

Commit

Permalink
Merge pull request #1196 from hlxsites/1194-icons-disappear
Browse files Browse the repository at this point in the history
1194 [Bug] Icons disappear if you scroll up and down
  • Loading branch information
sharanagoudapatil authored Jul 5, 2024
2 parents 28b6f7b + 92bca6e commit c8ea586
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion scripts/scripts-dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,10 @@ export function scrollJumpMenuFixed(pageJumpMenuContainer) {
pageJumpMenuContainer.classList.remove(...'[&_.page-jump-menu-wrapper]:md:max-w-max [&_ul]:divide-x [&_ul>li>a]:h-40 [&_ul>li>a]:flex-col [&_ul>li>a]:justify-center'.split(' '));
} else {
pageJumpMenuContainer.classList.remove(...'w-full fixed mt-[-1px] bg-white shadow-lg inset-x-0 top-[83px] py-2 z-10 [&_.page-jump-menu-wrapper]:md:max-w-7xl [&_ul>li>a]:flex-row [&_ul>li>a]:items-center [&_ul>li>a]:h-full [&_li>a>span.icon-chevron-down]:hidden'.split(' '));
document.querySelectorAll('.page-jump-menu-container ul li')?.forEach((el) => el?.firstElementChild?.classList.remove('rounded-full'));
document.querySelectorAll('.page-jump-menu-container ul li')?.forEach((el) => {
el?.firstElementChild?.classList.remove('rounded-full');
el?.firstElementChild?.querySelector('span.icon svg use')?.classList.remove('stroke-danaherpurple-500');
});
pageJumpMenuContainer.classList.add(...'[&_.page-jump-menu-wrapper]:md:max-w-max [&_ul]:divide-x [&_ul>li>a]:h-40 [&_ul>li>a]:flex-col [&_ul>li>a]:justify-center'.split(' '));
}
}
Expand Down
Loading

0 comments on commit c8ea586

Please sign in to comment.