Revert "web: Safari fixes merge branch (#14181)" (#14211)

This commit is contained in:
Marc 'risson' Schmitt
2025-04-24 20:00:29 +02:00
committed by GitHub
parent cf160f800d
commit 337956672f
31 changed files with 832 additions and 1424 deletions

View File

@ -1,20 +1,19 @@
import {
appendStyleSheet,
assertAdoptableStyleSheetParent,
} from "@goauthentik/common/stylesheets.js";
import { TemplateResult, render as litRender } from "lit";
import AKGlobal from "@goauthentik/common/styles/authentik.css";
import PFBase from "@patternfly/patternfly/patternfly-base.css";
import { ensureCSSStyleSheet } from "../utils/ensureCSSStyleSheet.js";
// A special version of render that ensures our style sheets will always be available
// to all elements under test. Ensures they look right during testing, and that any
// CSS-based checks for visibility will return correct values.
export const render = (body: TemplateResult) => {
assertAdoptableStyleSheetParent(document);
appendStyleSheet([PFBase, AKGlobal], document);
document.adoptedStyleSheets = [
...document.adoptedStyleSheets,
ensureCSSStyleSheet(PFBase),
ensureCSSStyleSheet(AKGlobal),
];
return litRender(body, document.body);
};