From 259e3fe1c9d36229711ad1de8be14c7d80543599 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Kr=C3=B6g?= Date: Sat, 13 Aug 2022 16:39:28 +0200 Subject: [PATCH] Fix ol.css for some examples - es2015-custom-element needs css variables declared in :host - external-map-map still does not work when editing in codesandbox, though that neither worked before. --- examples/es2015-custom-element.js | 2 +- examples/mobile-full-screen.html | 2 +- examples/resources/external-map-map.html | 2 +- site/src/download/index.hbs | 2 +- src/ol/ol.css | 3 ++- 5 files changed, 6 insertions(+), 5 deletions(-) diff --git a/examples/es2015-custom-element.js b/examples/es2015-custom-element.js index 4a4dbd8901..5d3c38b854 100644 --- a/examples/es2015-custom-element.js +++ b/examples/es2015-custom-element.js @@ -9,7 +9,7 @@ class OLComponent extends HTMLElement { this.shadow = this.attachShadow({mode: 'open'}); const link = document.createElement('link'); link.setAttribute('rel', 'stylesheet'); - link.setAttribute('href', 'css/ol.css'); + link.setAttribute('href', 'theme/ol.css'); this.shadow.appendChild(link); const style = document.createElement('style'); style.innerText = ` diff --git a/examples/mobile-full-screen.html b/examples/mobile-full-screen.html index 32b73f4215..0a1bbfb922 100644 --- a/examples/mobile-full-screen.html +++ b/examples/mobile-full-screen.html @@ -13,7 +13,7 @@ cloak: Mobile full screen example - +