Skip to content

Commit

Permalink
Merge pull request #353 from alphagov/make-search-label-only-visually…
Browse files Browse the repository at this point in the history
…-hidden

Remove aria-hidden from search label
  • Loading branch information
tombye authored Sep 18, 2024
2 parents 3af782f + 6814e7d commit 8970435
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
- BREAKING: drop support for end-of-life Ruby versions 2.7 and 3.0. The minimum Ruby version is now 3.1.
- Update gem dependencies.
- Declare some missing indirect dependencies to prepare for Ruby 3.4. This also resolves some warnings about this at build time.
- Remove aria-hidden from search label to let assistive technologies see its accessible name

## 3.5.0

Expand Down
4 changes: 2 additions & 2 deletions lib/source/layouts/_search.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
<div class="search" data-module="search" data-path-to-site-root="<%= path_to_site_root config, current_page.path %>">
<form action="https://www.google.co.uk/search" method="get" role="search" class="search__form govuk-!-margin-bottom-4">
<input type="hidden" name="as_sitesearch" value="<%= config[:tech_docs][:host] %>"/>
<label class="govuk-label search__label" for="search" aria-hidden="true">
<label class="govuk-label search__label" for="search">
Search (via Google)
</label>
<input
type="text"
type="search"
id="search" name="q"
class="govuk-input govuk-!-margin-bottom-0 search__input"
aria-controls="search-results"
Expand Down

0 comments on commit 8970435

Please sign in to comment.