File tree Expand file tree Collapse file tree 3 files changed +7
-8
lines changed Expand file tree Collapse file tree 3 files changed +7
-8
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></slot>
4+ ` . replace ( "__css__" , import . meta. url . replace ( ".html.js" , ".css" ) ) ;
5+
Original file line number Diff line number Diff line change 1- import { ComponentModule } from "../../../src/modules/component.js" ;
21import "../menu-item/menu-item.js" ;
32import "../divider-item/divider-item.js" ;
43import "../menu-label/menu-label.js" ;
54import "../menu-group/menu-group.js" ;
5+ import { HTML } from "./menu-container.html.js" ;
66
77class MenuContainer extends HTMLElement {
88 static name = Object . freeze ( "menu-container" ) ;
99
1010 constructor ( ) {
1111 super ( ) ;
1212 this . attachShadow ( { mode : "open" } ) ;
13- this . style . display = "none" ;
13+ this . shadowRoot . innerHTML = HTML ;
1414 }
1515
1616 async connectedCallback ( ) {
17- this . shadowRoot . innerHTML = await ComponentModule . load_html ( {
18- url : import . meta. url ,
19- } ) ;
20-
2117 await this . #initialize( ) ;
22- this . style . display = "flex" ;
2318 }
2419
2520 async disconnectedCallback ( ) {
You can’t perform that action at this time.
0 commit comments