Skip to content
Snippets Groups Projects
Commit dc0b6aa9 authored by Reiter, Christoph's avatar Reiter, Christoph :snake:
Browse files

Set inline icon at render time, after the resource path is known

parent 2936cf63
No related branches found
No related tags found
No related merge requests found
...@@ -40,10 +40,6 @@ class VpuCommonDemo extends VPULitElement { ...@@ -40,10 +40,6 @@ class VpuCommonDemo extends VPULitElement {
color: #ffbb00 !important; color: #ffbb00 !important;
background-color: blue; background-color: blue;
} }
a:after {
${ unsafeCSS(getIconCSS('envelope')) };
}
`; `;
} }
...@@ -66,6 +62,11 @@ class VpuCommonDemo extends VPULitElement { ...@@ -66,6 +62,11 @@ class VpuCommonDemo extends VPULitElement {
const bulmaCSS = commonUtils.getAssetURL(bulmaCSSPath); const bulmaCSS = commonUtils.getAssetURL(bulmaCSSPath);
return html` return html`
<link rel="stylesheet" href="${bulmaCSS}"> <link rel="stylesheet" href="${bulmaCSS}">
<style>
a:after {
${ getIconCSS('envelope') };
}
</style>
<section class="section"> <section class="section">
<div class="container"> <div class="container">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment