Skip to content

Commit 1736652

Browse files
authored
Merge pull request #1403 from data-driven-forms/add-form-classname-pf-wizard
fix(pf4): Add modal form class for PF4 wizard.
2 parents 9bbb5f6 + e089ba4 commit 1736652

File tree

1 file changed

+7
-1
lines changed
  • packages/pf4-component-mapper/src/wizard

1 file changed

+7
-1
lines changed

packages/pf4-component-mapper/src/wizard/wizard.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,13 @@ const WizardInternal = ({
9292
}
9393

9494
return (
95-
<Modal inModal={inModal} container={state.container} aria-labelledby={rest.name} {...ModalProps}>
95+
<Modal
96+
inModal={inModal}
97+
container={state.container}
98+
aria-labelledby={rest.name}
99+
{...ModalProps}
100+
className={inModal ? ` pf-v5-c-wizard${ModalProps.className || ''}` : ModalProps.className}
101+
>
96102
<div
97103
tabIndex={inModal ? 0 : null}
98104
className={`pf-v5-c-wizard ${inModal ? '' : 'no-shadow'} ddorg__pf4-component-mapper__wizard ${className ? className : ''}`}

0 commit comments

Comments
 (0)