Skip to content

Commit

Permalink
Enhance search form accessibility
Browse files Browse the repository at this point in the history
Added field description via the title attribute and set to "required"
the search terms, as there is no reason to look up an emtpy string.
  • Loading branch information
ntd committed Oct 15, 2013
1 parent 8bd8105 commit 4ddb9d6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions lang/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ en:
GOTO: 'Go to {page} page'
TOC: 'Table of contents'
Search: 'Search'
SearchTitle: 'Enter the terms to search'
RESULTS: 'Showing results for "{query}" ({count} pages found):'
NORESULTS: 'No results containing "{query}" were found.'
1 change: 1 addition & 0 deletions lang/it.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ it:
GOTO: 'Vai alla pagina {page}'
TOC: 'Indice'
Search: 'Cerca'
SearchTitle: 'Inserire i termini da ricercare'
RESULTS: 'Visualizzazione dei risultati per "{query}" ({count} pagine trovate):'
NORESULTS: 'Nessuna voce contenente "{query}" è stata trovata.'
2 changes: 1 addition & 1 deletion templates/SearchForm.ss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<form class="navbar-form form-search pull-right" $FormAttributes>
<div class="input-append">
<input name="Search" type="text" class="search-query input-medium" value="$SearchQuery">
<input name="Search" type="text" title="<%t Silverstrap.SearchTitle %>" required class="search-query input-medium" value="$SearchQuery">
<button type="submit" class="btn btn-primary"><%t Silverstrap.Search %></button>
</div>
</form>

0 comments on commit 4ddb9d6

Please sign in to comment.