From 7db47f1c039e371e755598674309625b6d73836a Mon Sep 17 00:00:00 2001 From: Rebecca Alpert Date: Tue, 17 Dec 2024 15:52:38 -0500 Subject: [PATCH] Address feedback --- packages/module/src/TermsOfUse/TermsOfUse.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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}