Added aria-label to search box input field. (#1380)

Co-authored-by: Benjamin Bach <benjamin@overtag.dk>
This commit is contained in:
Daniel Mundra 2022-11-21 10:16:48 -08:00 committed by GitHub
parent 8142cd1a16
commit 478ef67053
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,7 @@
{%- if 'singlehtml' not in builder %}
<div role="search">
<form id="rtd-search-form" class="wy-form" action="{{ pathto('search') }}" method="get">
<input type="text" name="q" placeholder="{{ _('Search docs') }}" />
<input type="text" name="q" placeholder="{{ _('Search docs') }}" aria-label="{{ _('Search docs') }}" />
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>