reference img instead of import

This commit is contained in:
Mads Rasmussen
2023-05-03 15:48:30 +02:00
parent 329dc80184
commit 16fcf0c004

View File

@@ -1,20 +1,17 @@
import { UUITextStyles } from '@umbraco-ui/uui-css/lib';
import { css, CSSResultGroup, html, LitElement, unsafeCSS } from 'lit';
import { css, CSSResultGroup, html, LitElement } from 'lit';
import { customElement } from 'lit/decorators.js';
import logoImg from '/umbraco_logomark_white.svg';
import './backoffice-header-sections.element';
import './backoffice-header-apps.element';
@customElement('umb-backoffice-header')
export class UmbBackofficeHeaderElement extends LitElement {
render() {
return html`
<div id="appHeader">
<uui-button id="logo" look="primary" label="Umbraco" compact>
<img src="${logoImg}" alt="Umbraco" />
<img src="/umbraco_logomark_white.svg" alt="Umbraco" />
</uui-button>
<umb-backoffice-header-sections id="sections"></umb-backoffice-header-sections>
@@ -22,7 +19,7 @@ export class UmbBackofficeHeaderElement extends LitElement {
</div>
`;
}
static styles: CSSResultGroup = [
UUITextStyles,
css`