Skip to content

Commit

Permalink
Shortened aria-label for search, added search role
Browse files Browse the repository at this point in the history
Made label instructing how to access search results less verbose

Signed-off-by: Patrick Smyth <[email protected]>
  • Loading branch information
smythp committed Sep 27, 2023
1 parent 34410eb commit 0362aa3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion i18n/en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
translation: "Search"

- id: search-aria-label
translation: "Search this site. After typing, navigate to results with the tab key and select your result with the Enter key."
translation: "Press tab to navigate to search results"

- id: 404-title
translation: "404 — Page not found."
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/header/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ <h2 class="h5 offcanvas-title ps-2" id="offcanvasDoksLabel"><a class="text-dark"

<div role="region" aria-live="polite">
<form class="doks-search position-relative flex-grow-1 ms-lg-auto me-lg-2">
<input id="search" class="form-control is-search" type="search" placeholder="{{ i18n "search-text" }}" aria-label="{{ i18n "search-aria-label" }}" autocomplete="off">
<input id="search" class="form-control is-search" role="search" type="search" placeholder="{{ i18n "search-text" }}" aria-label="{{ i18n "search-aria-label" }}" autocomplete="off">
<div id="suggestions" class="shadow bg-white rounded d-none"></div>
</form>
</div>
Expand Down

0 comments on commit 0362aa3

Please sign in to comment.