diff --git a/web/src/flow/stages/prompt/PromptStage.ts b/web/src/flow/stages/prompt/PromptStage.ts index 4eb456b50..e39600be0 100644 --- a/web/src/flow/stages/prompt/PromptStage.ts +++ b/web/src/flow/stages/prompt/PromptStage.ts @@ -13,6 +13,7 @@ import { unsafeHTML } from "lit/directives/unsafe-html.js"; import PFAlert from "@patternfly/patternfly/components/Alert/alert.css"; import PFButton from "@patternfly/patternfly/components/Button/button.css"; +import PFCheck from "@patternfly/patternfly/components/Check/check.css"; import PFForm from "@patternfly/patternfly/components/Form/form.css"; import PFFormControl from "@patternfly/patternfly/components/FormControl/form-control.css"; import PFLogin from "@patternfly/patternfly/components/Login/login.css"; @@ -38,6 +39,7 @@ export class PromptStage extends BaseStage - + `; }) @@ -239,11 +244,12 @@ export class PromptStage extends BaseStage - + ${prompt.required ? html`

${t`Required.`}

` : html``} diff --git a/web/src/user/user-settings/details/stages/prompt/PromptStage.ts b/web/src/user/user-settings/details/stages/prompt/PromptStage.ts index 0b3d33799..0c4cbdde4 100644 --- a/web/src/user/user-settings/details/stages/prompt/PromptStage.ts +++ b/web/src/user/user-settings/details/stages/prompt/PromptStage.ts @@ -3,20 +3,14 @@ import { PromptStage } from "@goauthentik/flow/stages/prompt/PromptStage"; import { t } from "@lingui/macro"; -import { CSSResult, TemplateResult, html } from "lit"; +import { TemplateResult, html } from "lit"; import { customElement } from "lit/decorators.js"; import { unsafeHTML } from "lit/directives/unsafe-html.js"; -import PFCheck from "@patternfly/patternfly/components/Check/check.css"; - import { PromptTypeEnum, StagePrompt } from "@goauthentik/api"; @customElement("ak-user-stage-prompt") export class UserSettingsPromptStage extends PromptStage { - static get styles(): CSSResult[] { - return super.styles.concat(PFCheck); - } - renderPromptInner(prompt: StagePrompt): string { switch (prompt.type) { // Checkbox requires slightly different rendering here due to the use of horizontal form elements