Skip to content

Commit b2e3da2

Browse files
committed
fix: W3C html semantic errors
1 parent 1d89351 commit b2e3da2

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/Header/Header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ export const Header = memo(
375375
)}
376376
>
377377
<button
378-
id={`${id}-search-button`}
378+
id={`${id}-search-close-button`}
379379
className={fr.cx("fr-btn--close", "fr-btn")}
380380
aria-controls={searchModalId}
381381
title={t("close")}

src/Modal/Modal.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ const Modal = memo(
6262
return (
6363
<dialog
6464
aria-labelledby={titleId}
65-
role="dialog"
6665
id={id}
6766
className={cx(fr.cx("fr-modal", topAnchor && "fr-modal--top"), className)}
6867
style={style}

0 commit comments

Comments
 (0)