Skip to content

Commit

Permalink
Merge branch 'dc0944stickybanner' of https://github.com/adobecom/milo
Browse files Browse the repository at this point in the history
…into dc0944stickybanner
  • Loading branch information
ivanvatadobe committed May 13, 2024
2 parents 7a7ad00 + 91fb052 commit 73b3a50
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion libs/blocks/global-navigation/global-navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,7 @@ class Gnav {

return this.loadDelayed().then(() => {
this.blocks.search.instance = new this.Search(this.blocks.search.config);
});
}).catch(() => {});
};

isToggleExpanded = () => this.elements.mobileToggle?.getAttribute('aria-expanded') === 'true';
Expand Down
6 changes: 5 additions & 1 deletion libs/blocks/table/table.css
Original file line number Diff line number Diff line change
Expand Up @@ -526,10 +526,14 @@ header.global-navigation {

.table .section-head .col:not(.section-head-title),
.table:not(.merch) .col-heading.col-1,
.table:not(.merch) .row-highlight .col-highlight.col-1 {
.table:not(.merch) .row-highlight .col-highlight.col-1:not(:only-child) {
display: none;
}

.table:not(.merch) .row-highlight:has(:only-child) {
grid-template-columns: repeat(auto-fit, 100%);
}

.table:not(.merch) .section-row-title {
grid-row: 1;
grid-column: 1 / x;
Expand Down
5 changes: 1 addition & 4 deletions libs/mep/dc0944/aside/aside.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,8 @@ function editCtaToModuleClick(el) {
if (cta.href.toLowerCase().includes('#module')) {
cta.addEventListener('click', (e) => {
e.preventDefault();
const moduleCta = document.querySelectorAll('.CTAButtons');
window.scrollTo(0, 0);
if (moduleCta.length) {
moduleCta[0].click();
}
document.querySelector('.CTAButtons')?.click();
});
}
});
Expand Down

0 comments on commit 73b3a50

Please sign in to comment.