Skip to content

Commit

Permalink
Merge pull request #338 from m-maillot/fix/html-semantic-errors
Browse files Browse the repository at this point in the history
fix: W3C html semantic errors
  • Loading branch information
garronej authored Nov 6, 2024
2 parents 1d89351 + be282fb commit fa691c6
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ export const Header = memo(
)}
>
<button
id={`${id}-search-button`}
id={`${id}-search-close-button`}
className={fr.cx("fr-btn--close", "fr-btn")}
aria-controls={searchModalId}
title={t("close")}
Expand Down
2 changes: 1 addition & 1 deletion src/Input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ export const Input = memo(
classes.nativeInputOrTextArea
)}
disabled={disabled || undefined}
aria-describedby={messageId}
aria-describedby={state !== "default" ? messageId : undefined}
type={textArea ? undefined : nativeInputProps?.type ?? "text"}
id={inputId}
/>
Expand Down
1 change: 0 additions & 1 deletion src/Modal/Modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ const Modal = memo(
return (
<dialog
aria-labelledby={titleId}
role="dialog"
id={id}
className={cx(fr.cx("fr-modal", topAnchor && "fr-modal--top"), className)}
style={style}
Expand Down

0 comments on commit fa691c6

Please sign in to comment.