diff --git a/blocks/header/header.js b/blocks/header/header.js index afa52456b8..b3ace7ddec 100644 --- a/blocks/header/header.js +++ b/blocks/header/header.js @@ -143,7 +143,7 @@ export default async function decorate(block) { `; hamburger.addEventListener('click', (e) => { toggleMenu(nav, navSections) - hamburgerHandler(e); + hamburgerHandler(); }); nav.prepend(hamburger); nav.setAttribute('aria-expanded', 'false'); @@ -210,10 +210,10 @@ function clickToShowMobileNavDropDown(){ }) } -function hamburgerHandler(e){ - if(e.target.parentNode.getAttribute('aria-label') == "Close navigation"){ +function hamburgerHandler(){ + if(document.querySelector('.nav-hamburger').querySelector('[aria-label]').ariaLabel.toLowerCase() == "close navigation"){ document.querySelector('.section.mobile-view-header').style.display = 'block'; - }else if(e.target.parentNode.getAttribute('aria-label') == "Open navigation"){ + }else if(document.querySelector('.nav-hamburger').querySelector('[aria-label]').ariaLabel.toLowerCase() == "open navigation"){ document.querySelector('.section.mobile-view-header').style.display = 'none'; } } \ No newline at end of file diff --git a/styles/partnership/partnership.css b/styles/partnership/partnership.css index c24f4423ce..c1c7bfa93d 100644 --- a/styles/partnership/partnership.css +++ b/styles/partnership/partnership.css @@ -59,7 +59,6 @@ transform: translate(-50%, -50%); width: calc(100% - 4pc); max-width: 600px; - /* height: 100%; */ } .section.partnership-image-popup .wrappercreation-wrapper .offer-documents-wrapper .offer-documents.block .richtext.text>.cmp-text div picture>img { @@ -79,7 +78,6 @@ width: calc(100% - 4pc); z-index: 1; width: 100%; - /* height: 100%; */ overflow: hidden; } @@ -103,13 +101,8 @@ } .section.partnership-image-popup .wrappercreation-wrapper .offer-documents-wrapper .offer-documents.block .richtext.text .stake-pop-up .text.popupText .cmp-text { - /* padding: 73px 32px 32px; - max-width: 600px; - width: 100%; - max-height: 350px; - height: 100%; - overflow: hidden; */ position: relative; + padding: 32px; } .section.partnership-image-popup .wrappercreation-wrapper .offer-documents-wrapper .offer-documents.block .richtext.text .stake-pop-up .text.popupText .cmp-text>p>span { @@ -130,15 +123,13 @@ right: 15px; } +.section.partnership-image-popup .wrappercreation-wrapper .offer-documents-wrapper .offer-documents.block .richtext.text .stake-pop-up .text.popupText .cmp-text .popup-parent-cont { + overflow: hidden; + overflow-y: auto; +} + .section.partnership-image-popup .wrappercreation-wrapper .offer-documents-wrapper .offer-documents.block .richtext.text .stake-pop-up .text.popupText .cmp-text .popup-parent-cont .popupContainer { - margin-top: 56px; max-height: 350px; - height: 100%; - display: block; - height: 100%; - margin: 0 2pc 2pc; - overflow-y: auto; - padding: 8px 24px; } .section.partnership-image-popup .wrappercreation-wrapper .offer-documents-wrapper .offer-documents.block .richtext.text .stake-pop-up .text.popupText .cmp-text .popup-parent-cont .popupContainer div p,