@@ -78,38 +78,40 @@ export const OnboardingBase: FunctionComponent<OnboardingProps> = ({
7878 >
7979 { /* This is a workaround since the PatternFly modal doesn't have ref forwarding */ }
8080 < section className = { `pf-chatbot__onboarding--section` } aria-label = { title } tabIndex = { - 1 } ref = { innerRef } >
81- < ModalHeader className = "pf-chatbot__onboarding--modal-header" >
82- < div className = "pf-chatbot__onboarding--header " >
81+ < >
82+ < ModalBody className = "pf-chatbot__onboarding--modal-body " >
8383 { ! isCompact && image && altText && (
84- < img src = { image } className = "pf-chatbot__onboarding--image" alt = { altText } />
84+ < div className = "pf-chatbot__onboarding--header" >
85+ < img src = { image } className = "pf-chatbot__onboarding--image" alt = { altText } />
86+ </ div >
8587 ) }
86- < h1 className = "pf-chatbot__onboarding--title" > { title } </ h1 >
87- </ div >
88- </ ModalHeader >
89- < ModalBody className = "pf-chatbot__onboarding--modal-body" >
90- < Content > { children } </ Content >
91- </ ModalBody >
92- < ModalFooter className = "pf-chatbot__onboarding--footer" >
93- < Button
94- isBlock
95- key = "onboarding-modal- primary"
96- variant = "primary"
97- onClick = { handlePrimaryAction }
98- form = "onboarding-form "
99- size = "lg"
100- >
101- { primaryActionBtn }
102- </ Button >
103- < Button
104- isBlock
105- key = "onboarding-modal- secondary"
106- variant = "secondary"
107- onClick = { handleSecondaryAction }
108- size = "lg"
109- >
110- { secondaryActionBtn }
111- </ Button >
112- </ ModalFooter >
88+ < div className = "pf-chatbot__onboarding--modal-text" >
89+ < h1 className = "pf-chatbot__onboarding--title" > { title } </ h1 >
90+ < Content > { children } </ Content >
91+ </ div >
92+ </ ModalBody >
93+ < ModalFooter className = "pf-chatbot__onboarding--footer" >
94+ < Button
95+ isBlock
96+ key = "onboarding-modal-primary"
97+ variant = " primary"
98+ onClick = { handlePrimaryAction }
99+ form = "onboarding-form"
100+ size = "lg "
101+ >
102+ { primaryActionBtn }
103+ </ Button >
104+ < Button
105+ isBlock
106+ key = "onboarding-modal-secondary"
107+ variant = " secondary"
108+ onClick = { handleSecondaryAction }
109+ size = "lg"
110+ >
111+ { secondaryActionBtn }
112+ </ Button >
113+ </ ModalFooter >
114+ </ >
113115 </ section >
114116 </ ChatbotModal >
115117 ) ;
0 commit comments