Skip to content

Commit

Permalink
Revert "fix localnav on ios so it has the correct position"
Browse files Browse the repository at this point in the history
This reverts commit 86d7d2d.
  • Loading branch information
sharmrj committed Jan 10, 2025
1 parent 86d7d2d commit a015bac
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
4 changes: 0 additions & 4 deletions libs/blocks/global-navigation/global-navigation.css
Original file line number Diff line number Diff line change
Expand Up @@ -1108,10 +1108,6 @@ header.new-nav .feds-breadcrumbs li:first-child:not(:nth-last-child(-n+3)):after
z-index: 9;
}

.feds-localnav.fix {
position: fixed;
}

.feds-localnav.has-promo {
top: var(--global-height-navPromo);
}
Expand Down
10 changes: 0 additions & 10 deletions libs/blocks/global-navigation/utilities/utilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -417,11 +417,6 @@ export const closeAllTabs = (tabs, tabpanels) => {
export const disableMobileScroll = () => {
if (!PERSONALIZATION_TAGS.safari()) return;
document.body.style.top = `-${window.scrollY}px`;
const localnav = document.querySelector('.feds-localnav');
if (localnav) {
localnav.style.top = `-${window.scrollY}px`;
localnav.classList.add('fix');
}
document.body.classList.add('disable-ios-scroll');
};

Expand All @@ -432,11 +427,6 @@ export const enableMobileScroll = () => {
if (Number.isNaN(y)) return;
document.body.classList.remove('disable-ios-scroll');
document.body.style.removeProperty('top');
const localnav = document.querySelector('.feds-localnav');
if (localnav) {
localnav.style.removeProperty('top');
localnav.classList.remove('fix');
}
window.scroll(0, y || 0);
};

Expand Down

0 comments on commit a015bac

Please sign in to comment.