Skip to content

Commit 77b16ec

Browse files
authored
chore: aria-hidden when icon present (#313)
1 parent 296de45 commit 77b16ec

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Modal/Modal.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,10 @@ const Modal = memo(
9797
<div className={fr.cx("fr-modal__content")}>
9898
<h1 id={titleId} className={fr.cx("fr-modal__title")}>
9999
{iconId !== undefined && (
100-
<span className={fr.cx(iconId, "fr-fi--lg")} />
100+
<span
101+
className={fr.cx(iconId, "fr-fi--lg")}
102+
aria-hidden={true}
103+
/>
101104
)}
102105
{title}
103106
</h1>

0 commit comments

Comments
 (0)