Add role to search (#3086)
This commit is contained in:
parent
084ddf8d8e
commit
f9b17c6249
1 changed files with 2 additions and 2 deletions
|
@ -2,7 +2,7 @@
|
||||||
{%- assign search_provider = site.search_provider | default: "lunr" -%}
|
{%- assign search_provider = site.search_provider | default: "lunr" -%}
|
||||||
{%- case search_provider -%}
|
{%- case search_provider -%}
|
||||||
{%- when "lunr" -%}
|
{%- when "lunr" -%}
|
||||||
<form class="search-content__form" onkeydown="return event.key != 'Enter';">
|
<form class="search-content__form" onkeydown="return event.key != 'Enter';" role="search">
|
||||||
<label class="sr-only" for="search">
|
<label class="sr-only" for="search">
|
||||||
{{ site.data.ui-text[site.locale].search_label_text | default: 'Enter your search term...' }}
|
{{ site.data.ui-text[site.locale].search_label_text | default: 'Enter your search term...' }}
|
||||||
</label>
|
</label>
|
||||||
|
@ -10,7 +10,7 @@
|
||||||
</form>
|
</form>
|
||||||
<div id="results" class="results"></div>
|
<div id="results" class="results"></div>
|
||||||
{%- when "google" -%}
|
{%- when "google" -%}
|
||||||
<form onsubmit="return googleCustomSearchExecute();" id="cse-search-box-form-id">
|
<form onsubmit="return googleCustomSearchExecute();" id="cse-search-box-form-id" role="search">
|
||||||
<label class="sr-only" for="cse-search-input-box-id">
|
<label class="sr-only" for="cse-search-input-box-id">
|
||||||
{{ site.data.ui-text[site.locale].search_label_text | default: 'Enter your search term...' }}
|
{{ site.data.ui-text[site.locale].search_label_text | default: 'Enter your search term...' }}
|
||||||
</label>
|
</label>
|
||||||
|
|
Loading…
Reference in a new issue