Skip to content

Commit

Permalink
Update search component input label
Browse files Browse the repository at this point in the history
The site search box is labelled inconsistently throughout the site.
This is a fail of WCAG SC 3.2.4: Consistent Identification.

Update layout header component search label to "Search on GOV.UK".
  • Loading branch information
danacotoran committed Oct 12, 2020
1 parent ba4063c commit a196503
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

value ||= ""
id ||= "search-main-" + SecureRandom.hex(4)
label_text ||= "Search GOV.UK"
label_text ||= "Search on GOV.UK"
name ||= 'q'
aria_controls ||= nil
%>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
<form id="search" class="gem-c-layout-header__search-form govuk-clearfix" action="/search" method="get" role="search">
<%= render "govuk_publishing_components/components/search", {
id: "site-search-text",
label_text: "Search",
no_border: true,
margin_bottom: 0
} %>
Expand Down

0 comments on commit a196503

Please sign in to comment.