From 0ade0aa818a98c4a1a5e6c6d0704101e4bfae54c Mon Sep 17 00:00:00 2001 From: npy11 Date: Wed, 3 Jul 2024 19:12:45 +0530 Subject: [PATCH 1/2] modal css added --- styles/partnership/partnership.css | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) 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, From 1c947406403c3579910e9b2f422d5a5d425ba486 Mon Sep 17 00:00:00 2001 From: Mujtaba Sayed Date: Wed, 3 Jul 2024 19:36:02 +0530 Subject: [PATCH 2/2] hamburger logic changed --- blocks/header/header.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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