Skip to content

Commit

Permalink
MWPW-156242 | [Performance] Georouting modal creating cls (#3050)
Browse files Browse the repository at this point in the history
Geo modal cls issue
  • Loading branch information
aishwaryamathuria authored Oct 28, 2024
1 parent acb3046 commit 8d6c98b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
5 changes: 5 additions & 0 deletions libs/blocks/modal/modal.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@
z-index: 102;
}

#locale-modal-v2 .dialog-close,
#locale-modal-v2 .georouting-wrapper {
display: block;
}

.dialog-modal.commerce-frame {
z-index: 103;
}
Expand Down
14 changes: 9 additions & 5 deletions libs/features/georoutingv2/georoutingv2.css
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
.dialog-modal.locale-modal-v2 .georouting-wrapper {
display: block !important;
padding: 56px 24px 40px;
}

.dialog-modal.locale-modal-v2 {
overflow: visible;
font-family: 'Adobe Clean', adobe-clean, 'Trebuchet MS', sans-serif;
}

.dialog-modal.locale-modal-v2 .dialog-close,
.dialog-modal.locale-modal-v2 .georouting-wrapper {
display: none;
}

.dialog-modal.locale-modal-v2 .georouting-wrapper {
padding: 56px 24px 40px;
}

.dialog-modal.locale-modal-v2 .georouting-bg {
position: absolute;
overflow: hidden;
Expand Down
2 changes: 1 addition & 1 deletion libs/features/georoutingv2/georoutingv2.js
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ function buildContent(currentPage, locale, geoData, locales) {
async function getDetails(currentPage, localeMatches, geoData) {
const availableLocales = await getAvailableLocales(localeMatches);
if (!availableLocales.length) return null;
const georoutingWrapper = createTag('div', { class: 'georouting-wrapper fragment', style: 'display:none;' });
const georoutingWrapper = createTag('div', { class: 'georouting-wrapper fragment' });
currentPage.url = window.location.hash ? document.location.href : '#';
if (availableLocales.length === 1) {
const content = buildContent(currentPage, availableLocales[0], geoData);
Expand Down

0 comments on commit 8d6c98b

Please sign in to comment.