From dc0b6aa9820b7589c7fb460afcbb3fc2b3031cfe Mon Sep 17 00:00:00 2001
From: Christoph Reiter <reiter.christoph@gmail.com>
Date: Thu, 3 Oct 2019 13:25:10 +0200
Subject: [PATCH] Set inline icon at render time, after the resource path is
 known

---
 packages/common/vpu-common-demo.js | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/packages/common/vpu-common-demo.js b/packages/common/vpu-common-demo.js
index ae83afd6..5c21f003 100644
--- a/packages/common/vpu-common-demo.js
+++ b/packages/common/vpu-common-demo.js
@@ -40,10 +40,6 @@ class VpuCommonDemo extends VPULitElement {
                 color: #ffbb00 !important;
                 background-color: blue;
             }
-
-            a:after {
-                ${ unsafeCSS(getIconCSS('envelope')) };
-            }
         `;
     }
 
@@ -66,6 +62,11 @@ class VpuCommonDemo extends VPULitElement {
         const bulmaCSS = commonUtils.getAssetURL(bulmaCSSPath);
         return html`
             <link rel="stylesheet" href="${bulmaCSS}">
+            <style>
+            a:after {
+                ${ getIconCSS('envelope') };
+            }
+            </style>
 
             <section class="section">
                 <div class="container">
-- 
GitLab