diff --git a/web/src/admin/applications/wizard/stories/ak-application-wizard.stories.ts b/web/src/admin/applications/wizard/stories/ak-application-wizard.stories.ts index 187e4aeb3..e121bdc21 100644 --- a/web/src/admin/applications/wizard/stories/ak-application-wizard.stories.ts +++ b/web/src/admin/applications/wizard/stories/ak-application-wizard.stories.ts @@ -54,10 +54,21 @@ const metadata: Meta = { }, }; +const LIGHT = "pf-t-light"; +function injectTheme() { + setTimeout(() => { + if (!document.body.classList.contains(LIGHT)) { + document.body.classList.add(LIGHT); + } + }) +} + + export default metadata; -const container = (testItem: TemplateResult) => - html`
+const container = (testItem: TemplateResult) => { + injectTheme(); + return html`
${testItem} -
`; +
`; +} export const PageOne = () => { return container( html` - + +
`, ); @@ -82,6 +95,7 @@ export const PageTwo = () => { return container( html` +
`, ); @@ -91,6 +105,7 @@ export const PageThreeLdap = () => { return container( html` +
`, ); diff --git a/web/src/elements/forms/Radio.ts b/web/src/elements/forms/Radio.ts index 432b4ee98..ef2255d94 100644 --- a/web/src/elements/forms/Radio.ts +++ b/web/src/elements/forms/Radio.ts @@ -69,7 +69,8 @@ export class Radio extends CustomEmitterElement(AKElement) { // already set. buildChangeHandler(option: RadioOption) { return (ev: Event) => { - // This is a controlled input. Stop the native event from escaping. + // This is a controlled input. Stop the native event from escaping or affecting the + // value. We'll do that ourselves. ev.stopPropagation(); ev.preventDefault(); if (this.value === option.value) {