diff --git a/packages/module/src/TermsOfUse/TermsOfUse.tsx b/packages/module/src/TermsOfUse/TermsOfUse.tsx index a5afe5da..9b89ee55 100644 --- a/packages/module/src/TermsOfUse/TermsOfUse.tsx +++ b/packages/module/src/TermsOfUse/TermsOfUse.tsx @@ -31,6 +31,8 @@ export interface TermsOfUseProps extends ModalProps { altText?: string; /** Ref applied to modal */ innerRef?: React.Ref; + /** OuiaID applied to modal */ + ouiaId?: string; } export const TermsOfUseBase: React.FunctionComponent = ({ @@ -47,6 +49,7 @@ export const TermsOfUseBase: React.FunctionComponent = ({ className, children, innerRef, + ouiaId = 'TermsOfUse', ...props }: TermsOfUseProps) => { const handlePrimaryAction = (_event: React.MouseEvent | MouseEvent | KeyboardEvent) => { @@ -61,7 +64,7 @@ export const TermsOfUseBase: React.FunctionComponent = ({ const modal = ( = ({
{image && altText && {altText}} -

- {title} -

+

{title}

- + {children} @@ -88,7 +89,6 @@ export const TermsOfUseBase: React.FunctionComponent = ({ variant="primary" onClick={handlePrimaryAction} form="terms-of-use-form" - id="pf-chatbot__terms-of-use--primary-btn" size="lg" > {primaryActionBtn}