Skip to content

Commit 5c1a8e7

Browse files
authored
Add role to search (mmistakes#3086)
1 parent 005315f commit 5c1a8e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

_includes/search/search_form.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
{%- assign search_provider = site.search_provider | default: "lunr" -%}
33
{%- case search_provider -%}
44
{%- when "lunr" -%}
5-
<form class="search-content__form" onkeydown="return event.key != 'Enter';">
5+
<form class="search-content__form" onkeydown="return event.key != 'Enter';" role="search">
66
<label class="sr-only" for="search">
77
{{ site.data.ui-text[site.locale].search_label_text | default: 'Enter your search term...' }}
88
</label>
99
<input type="search" id="search" class="search-input" tabindex="-1" placeholder="{{ site.data.ui-text[site.locale].search_placeholder_text | default: 'Enter your search term...' }}" />
1010
</form>
1111
<div id="results" class="results"></div>
1212
{%- when "google" -%}
13-
<form onsubmit="return googleCustomSearchExecute();" id="cse-search-box-form-id">
13+
<form onsubmit="return googleCustomSearchExecute();" id="cse-search-box-form-id" role="search">
1414
<label class="sr-only" for="cse-search-input-box-id">
1515
{{ site.data.ui-text[site.locale].search_label_text | default: 'Enter your search term...' }}
1616
</label>

0 commit comments

Comments
 (0)