Skip to content

Commit

Permalink
chore: aria-hidden when icon present (#313)
Browse files Browse the repository at this point in the history
  • Loading branch information
Destinyyyy authored Sep 23, 2024
1 parent 296de45 commit 77b16ec
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Modal/Modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,10 @@ const Modal = memo(
<div className={fr.cx("fr-modal__content")}>
<h1 id={titleId} className={fr.cx("fr-modal__title")}>
{iconId !== undefined && (
<span className={fr.cx(iconId, "fr-fi--lg")} />
<span
className={fr.cx(iconId, "fr-fi--lg")}
aria-hidden={true}
/>
)}
{title}
</h1>
Expand Down

0 comments on commit 77b16ec

Please sign in to comment.