style no-router

This commit is contained in:
Niels Lyngsø
2024-11-07 10:01:59 +01:00
parent 715bf1c58f
commit 493e800a7e

View File

@@ -99,6 +99,9 @@ export class UmbModalElement extends UmbLitElement {
this.#modalRouterElement.parent = this.#modalContext.router;
} else {
this.#modalRouterElement = document.createElement('div');
// Notice inline styling here is used cause the element is not appended into this elements shadowDom but outside and there by gets into the element via a slot.
this.#modalRouterElement.style.position = 'relative';
this.#modalRouterElement.style.height = '100%';
new UmbContextBoundary(this.#modalRouterElement, UMB_ROUTE_CONTEXT).hostConnected();
}