use display contents instead of setting a height (#18363)

This commit is contained in:
Niels Lyngsø
2025-02-18 12:20:33 +01:00
committed by GitHub
parent fe9ea4766a
commit 04eb94d958

View File

@@ -103,8 +103,7 @@ export class UmbModalElement extends UmbLitElement {
} 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%';
this.#modalRouterElement.style.display = 'contents';
new UmbContextBoundary(this.#modalRouterElement, UMB_ROUTE_CONTEXT).hostConnected();
}