Skip to content

Commit 2aeb37c

Browse files
committed
fix modal title and description for accessibility
1 parent 1e5caf2 commit 2aeb37c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/js/src/ai-content-planner/components/approve-modal.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ export const ApproveModal = ( { isEmptyCanvas, isPremium, isUpsell, onClick, ups
5050
<div className="yst-w-12 yst-h-12 yst-rounded-full yst-bg-ai-100 yst-flex yst-items-center yst-justify-center yst-mx-auto yst-mb-4">
5151
<GradientSparklesIcon className="yst-h-6 yst-w-6" { ...svgAriaProps } />
5252
</div>
53-
<h3 className="yst-text-slate-900 yst-font-medium yst-text-lg yst-mb-2">{ title }</h3>
54-
<p className="yst-text-slate-600 yst-text-sm yst-mb-6 yst-mx-6">{ description }</p>
53+
<Modal.Title className="yst-text-slate-900 yst-font-medium yst-text-lg yst-mb-2">{ title }</Modal.Title>
54+
<Modal.Description className="yst-text-slate-600 yst-text-sm yst-mb-6 yst-mx-6">{ description }</Modal.Description>
5555
{ isUpsell ? <Button
5656
variant="upsell" as="a" href={ upsellLink } target="_blank" className="yst-w-full" rel="noopener noreferrer"
5757
>

0 commit comments

Comments
 (0)