Skip to content

Commit

Permalink
Merge pull request #4 from WWWPiramalFinanceCOM/feature/comp-creation…
Browse files Browse the repository at this point in the history
…-new

Feature/comp creation new
  • Loading branch information
Mujtaba-Sayyed authored Jul 3, 2024
2 parents a89ff8d + 8a56d7a commit f7d14da
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 19 deletions.
8 changes: 4 additions & 4 deletions blocks/header/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export default async function decorate(block) {
</button>`;
hamburger.addEventListener('click', (e) => {
toggleMenu(nav, navSections)
hamburgerHandler(e);
hamburgerHandler();
});
nav.prepend(hamburger);
nav.setAttribute('aria-expanded', 'false');
Expand Down Expand Up @@ -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';
}
}
21 changes: 6 additions & 15 deletions styles/partnership/partnership.css
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -79,7 +78,6 @@
width: calc(100% - 4pc);
z-index: 1;
width: 100%;
/* height: 100%; */
overflow: hidden;
}

Expand All @@ -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 {
Expand All @@ -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,
Expand Down

0 comments on commit f7d14da

Please sign in to comment.