Skip to content

Commit

Permalink
Added aria label to search button
Browse files Browse the repository at this point in the history
  • Loading branch information
murdo-moj committed Sep 27, 2024
1 parent b65f165 commit dbbf525
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ <h1 class="govuk-heading-l">{{h1_value}}</h1>
<div class="app-search app-search--compact">
<label for="{{ form.query.id_for_label }}" class="govuk-label govuk-visually-hidden-focusable">{% translate "Search MOJ data" %}</label>
{{ form.query }}
<button class="search-button" type="submit" id="search-button">
<button class="search-button" type="submit" id="search-button" aria-label="search-button">
<svg aria-hidden="true" class="search-icon" focusable="false" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36 36" width="40" height="40">
<path d="M25.7 24.8L21.9 21c.7-1 1.1-2.2 1.1-3.5 0-3.6-2.9-6.5-6.5-6.5S10 13.9 10 17.5s2.9 6.5 6.5 6.5c1.6 0 3-.6 4.1-1.5l3.7 3.7 1.4-1.4zM12 17.5c0-2.5 2-4.5 4.5-4.5s4.5 2 4.5 4.5-2 4.5-4.5 4.5-4.5-2-4.5-4.5z" fill="currentColor"></path>
</svg>
Expand Down

0 comments on commit dbbf525

Please sign in to comment.