Skip to content

Commit

Permalink
Address feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
rebeccaalpert committed Dec 17, 2024
1 parent e99cca3 commit 7db47f1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/module/src/TermsOfUse/TermsOfUse.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ export interface TermsOfUseProps extends ModalProps {
altText?: string;
/** Ref applied to modal */
innerRef?: React.Ref<HTMLDivElement>;
/** OuiaID applied to modal */
ouiaId?: string;
}

export const TermsOfUseBase: React.FunctionComponent<TermsOfUseProps> = ({
Expand All @@ -47,6 +49,7 @@ export const TermsOfUseBase: React.FunctionComponent<TermsOfUseProps> = ({
className,
children,
innerRef,
ouiaId = 'TermsOfUse',
...props
}: TermsOfUseProps) => {
const handlePrimaryAction = (_event: React.MouseEvent | MouseEvent | KeyboardEvent) => {
Expand All @@ -61,7 +64,7 @@ export const TermsOfUseBase: React.FunctionComponent<TermsOfUseProps> = ({
const modal = (
<ChatbotModal
isOpen={isModalOpen}
ouiaId="TermsOfUse"
ouiaId={ouiaId}
aria-labelledby="terms-of-use-title"
aria-describedby="terms-of-use-modal"
className={`pf-chatbot__terms-of-use-modal pf-chatbot__terms-of-use-modal--${displayMode} ${className ? className : ''}`}
Expand All @@ -73,12 +76,10 @@ export const TermsOfUseBase: React.FunctionComponent<TermsOfUseProps> = ({
<ModalHeader>
<div className="pf-chatbot__terms-of-use--header">
{image && altText && <img src={image} className="pf-chatbot__terms-of-use--image" alt={altText} />}
<h1 className="pf-chatbot__terms-of-use--title" id="modal-custom-header-label">
{title}
</h1>
<h1 className="pf-chatbot__terms-of-use--title">{title}</h1>
</div>
</ModalHeader>
<ModalBody id="terms-of-use-modal-body">
<ModalBody>
<Content>{children}</Content>
</ModalBody>
<ModalFooter className="pf-chatbot__terms-of-use--footer">
Expand All @@ -88,7 +89,6 @@ export const TermsOfUseBase: React.FunctionComponent<TermsOfUseProps> = ({
variant="primary"
onClick={handlePrimaryAction}
form="terms-of-use-form"
id="pf-chatbot__terms-of-use--primary-btn"
size="lg"
>
{primaryActionBtn}
Expand Down

0 comments on commit 7db47f1

Please sign in to comment.