File tree Expand file tree Collapse file tree 3 files changed +8
-13
lines changed Expand file tree Collapse file tree 3 files changed +8
-13
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ export const HTML = `
2+ <link rel="stylesheet" href="__css__" />
3+ <slot name="prefix"></slot>
4+ <slot></slot>
5+ <slot name="suffix"></slot>
6+ ` . replace ( "__css__" , import . meta. url . replace ( ".html.js" , ".css" ) ) ;
Original file line number Diff line number Diff line change 1- import { ComponentModule } from "../../../src/modules/component .js" ;
1+ import { HTML } from "./menu-label.html .js" ;
22
33class MenuLabel extends HTMLElement {
44 static name = Object . freeze ( "menu-label" ) ;
55
66 constructor ( ) {
77 super ( ) ;
88 this . attachShadow ( { mode : "open" } ) ;
9- this . style . display = "none" ;
10- }
11-
12- async connectedCallback ( ) {
13- this . shadowRoot . innerHTML = await ComponentModule . load_html ( {
14- url : import . meta. url ,
15- } ) ;
16-
17- this . style . display = "flex" ;
9+ this . shadowRoot . innerHTML = HTML ;
1810 }
1911}
2012
You can’t perform that action at this time.
0 commit comments