diff --git a/libs/features/georoutingv2/georoutingv2.css b/libs/features/georoutingv2/georoutingv2.css index 3563ac8306..b4d495b206 100644 --- a/libs/features/georoutingv2/georoutingv2.css +++ b/libs/features/georoutingv2/georoutingv2.css @@ -21,10 +21,6 @@ z-index: -1; } -.dialog-modal.locale-modal-v2 .georouting-bg svg { - width: 100%; -} - .dialog-modal.locale-modal-v2 .picker { position: fixed; margin-top: 2px; @@ -140,19 +136,6 @@ padding: initial; } -@media (min-width: 480px) { - .dialog-modal.locale-modal-v2 { - background-image: url('/libs/features/georoutingv2/img/GeoModal_BG_Map_Tablet.png'); - background-position: center; - background-repeat: no-repeat; - background-size: cover; - } - - .dialog-modal.locale-modal-v2 .georouting-bg { - display: none; - } -} - @media (min-width: 600px) { .dialog-modal.locale-modal-v2 .georouting-wrapper { padding: 56px 56px 40px; @@ -168,9 +151,3 @@ max-width: 720px; } } - -@media (min-width: 1200px) { - .dialog-modal.locale-modal-v2 { - background-image: url('/libs/features/georoutingv2/img/GeoModal_BG_Map_Desktop.png'); - } -} diff --git a/libs/features/georoutingv2/georoutingv2.js b/libs/features/georoutingv2/georoutingv2.js index cb6c817db3..a37967a95b 100644 --- a/libs/features/georoutingv2/georoutingv2.js +++ b/libs/features/georoutingv2/georoutingv2.js @@ -228,13 +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 { innerWidth } = window; - let svgDiv = null; - if (innerWidth < 480) { - const { default: getMobileBg } = await import('./getMobileBg.js'); - svgDiv = createTag('div', { class: 'georouting-bg' }, getMobileBg()); - } - const georoutingWrapper = createTag('div', { class: 'georouting-wrapper fragment', style: 'display:none;' }, svgDiv); + const georoutingWrapper = createTag('div', { class: 'georouting-wrapper fragment', style: 'display:none;' }); currentPage.url = window.location.hash ? document.location.href : '#'; if (availableLocales.length === 1) { const content = buildContent(currentPage, availableLocales[0], geoData); diff --git a/libs/features/georoutingv2/getMobileBg.js b/libs/features/georoutingv2/getMobileBg.js deleted file mode 100644 index 2f59d33750..0000000000 --- a/libs/features/georoutingv2/getMobileBg.js +++ /dev/null @@ -1,13 +0,0 @@ -export default function getMobileBg() { - return ` - - - - - `; -} diff --git a/libs/features/georoutingv2/img/GeoModal_BG_Map_Desktop.png b/libs/features/georoutingv2/img/GeoModal_BG_Map_Desktop.png deleted file mode 100644 index c24e5e7648..0000000000 Binary files a/libs/features/georoutingv2/img/GeoModal_BG_Map_Desktop.png and /dev/null differ diff --git a/libs/features/georoutingv2/img/GeoModal_BG_Map_Mobile.png b/libs/features/georoutingv2/img/GeoModal_BG_Map_Mobile.png deleted file mode 100644 index 0d04bdfc8f..0000000000 Binary files a/libs/features/georoutingv2/img/GeoModal_BG_Map_Mobile.png and /dev/null differ diff --git a/libs/features/georoutingv2/img/GeoModal_BG_Map_Tablet.png b/libs/features/georoutingv2/img/GeoModal_BG_Map_Tablet.png deleted file mode 100644 index 13dda58bb6..0000000000 Binary files a/libs/features/georoutingv2/img/GeoModal_BG_Map_Tablet.png and /dev/null differ diff --git a/test/features/georoutingv2/georoutingv2.test.js b/test/features/georoutingv2/georoutingv2.test.js index 1257b81d29..bab9b39c14 100644 --- a/test/features/georoutingv2/georoutingv2.test.js +++ b/test/features/georoutingv2/georoutingv2.test.js @@ -311,17 +311,6 @@ describe('GeoRouting', () => { expect(modal).to.not.be.null; }); - it('Has inline svg for mobile background', async () => { - const ogWidth = window.innerWidth; - window.innerWidth = 400; - - await init(mockConfig, createTag, getMetadata, loadBlock, loadStyle); - const svg = document.querySelector('.dialog-modal .georouting-bg svg'); - expect(svg).to.exist; - - window.innerWidth = ogWidth; - }); - it('Does not create a modal if the user IP matches session storage.', async () => { // prepare setUserCountryFromIP('US');