Skip to content

Commit

Permalink
fix: a11y improvements (#1493)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fupete authored Dec 13, 2024
1 parent 39b310f commit a8fc99c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/search-main/search-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ function SearchMain({ location, maxResults, title, suggest }) {
};

return (
<section className={styles}>
<section className={styles} aria-labelledby="searchHomeTitle">
<div className="container-xxl">
<div className="row">
<div className="col-12 g-0">
Expand All @@ -101,7 +101,7 @@ function SearchMain({ location, maxResults, title, suggest }) {
>
{title && (
<div className="text-container mb-5">
{title && <h2>{title}</h2>}
{title && <h2 id="searchHomeTitle">{title}</h2>}
</div>
)}
{suggest && (
Expand Down
2 changes: 1 addition & 1 deletion src/components/section/section.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function Section({ background, bgImage, whiteText, describedBy, children }) {
return (
<section
className={sectionnStyles}
aria-describedby={describedBy}
aria-labelledby={describedBy}
style={{ backgroundImage: `url(${bgImage})` }}
>
<div className="section-content">{children}</div>
Expand Down
1 change: 1 addition & 0 deletions src/components/subscribe/subscribe.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ function Subscribe({
<input
type="email"
className="form-control"
autoComplete="email"
required
id={id}
name="email"
Expand Down

0 comments on commit a8fc99c

Please sign in to comment.