From 515a402db7383edc70412115d45eddf52461119d Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Wed, 18 Jan 2023 20:43:19 +0100 Subject: [PATCH] web/flows: fix flow executor background overlay in safari Signed-off-by: Jens Langhammer --- web/src/flow/FlowExecutor.ts | 69 +++++++++++++++++++----------------- 1 file changed, 37 insertions(+), 32 deletions(-) diff --git a/web/src/flow/FlowExecutor.ts b/web/src/flow/FlowExecutor.ts index c5865dda8..69e576f69 100644 --- a/web/src/flow/FlowExecutor.ts +++ b/web/src/flow/FlowExecutor.ts @@ -26,7 +26,7 @@ import "@goauthentik/flow/stages/password/PasswordStage"; import { t } from "@lingui/macro"; -import { CSSResult, TemplateResult, css, html } from "lit"; +import { CSSResult, TemplateResult, css, html, render } from "lit"; import { customElement, property } from "lit/decorators.js"; import { unsafeHTML } from "lit/directives/unsafe-html.js"; import { until } from "lit/directives/until.js"; @@ -458,38 +458,43 @@ export class FlowExecutor extends AKElement implements StageHost { } } + renderBackgroundOverlay(): TemplateResult { + const overlaySVG = html``; + render(overlaySVG, document.body); + return overlaySVG; + } + render(): TemplateResult { - return html`
- - - - - - - - - - - -
+ return html`
${this.renderBackgroundOverlay()}