closer but not there yet

This commit is contained in:
Joseph Garrone 2021-03-03 03:17:56 +01:00
parent 2d69a1f946
commit 24e07c3e00
3 changed files with 7 additions and 1 deletions

View File

@ -60,7 +60,7 @@
var out= {
"showUsername": ${auth.showUsername()?c},
"showResetCredentials": ${auth.showResetCredentials()?c},
"showTryAnotherWayLink": ${auth.showTryAnotherWayLink()?c}
"showTryAnotherWayLink": ${auth.showTryAnotherWayLink()?c},
"selectedCredential": "${auth.selectedCredential!''}" || undefined
};

View File

@ -5,6 +5,7 @@ import { allPropertiesValuesToUndefined } from "../tools/allPropertiesValuesToUn
export type KcClasses<CssClasses extends string> = { [key in CssClasses]?: string[] | string };
export type KcTemplateCssClasses =
"kcHtmlClass" |
"kcLoginClass" |
"kcHeaderClass" |
"kcHeaderWrapperClass" |
@ -43,6 +44,7 @@ export const defaultKcTemplateProperties: KcTemplateProperties = {
.map(end => `node_modules/patternfly/dist/css/patternfly${end}`),
"lib/zocial/zocial.css"
],
"kcHtmlClass": "login-pf",
"kcLoginClass": "login-pf-page",
"kcContentWrapperClass": "row",
"kcHeaderClass": "login-pf-page-header",

View File

@ -92,6 +92,10 @@ export const Template = memo((props: TemplateProps) => {
)
);
document.getElementsByTagName("html")[0]
.classList
.add(cx(kcProperties.kcHtmlClass));
}, []);