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

Use a style array instead of merging in the css literal

lit-element complains
parent cef3b926
No related branches found
No related tags found
No related merge requests found
...@@ -40,10 +40,7 @@ class KnowledgeBaseWebPageElementViewDemo extends ScopedElementsMixin(LitElement ...@@ -40,10 +40,7 @@ class KnowledgeBaseWebPageElementViewDemo extends ScopedElementsMixin(LitElement
static get styles() { static get styles() {
// language=css // language=css
return css` const styles = css`
${commonStyles.getThemeCSS()}
${commonStyles.getGeneralCSS()}
h1.title {margin-bottom: 1em;} h1.title {margin-bottom: 1em;}
div.container {margin-bottom: 1.5em;} div.container {margin-bottom: 1.5em;}
...@@ -57,6 +54,12 @@ class KnowledgeBaseWebPageElementViewDemo extends ScopedElementsMixin(LitElement ...@@ -57,6 +54,12 @@ class KnowledgeBaseWebPageElementViewDemo extends ScopedElementsMixin(LitElement
--KBBorder: 2px solid blue; --KBBorder: 2px solid blue;
} }
`; `;
return [
commonStyles.getThemeCSS(),
commonStyles.getGeneralCSS(),
styles,
];
} }
getAuthComponentHtml() { getAuthComponentHtml() {
......
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