diff options
| author | Alexandre Flament <alex@al-f.net> | 2022-03-19 12:00:03 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-19 12:00:03 +0100 |
| commit | b6920351200dc7d56ba4529758073ea2da219004 (patch) | |
| tree | 27ce25bb7776b9e3a7da613d8043c4f4ba3e80e3 /searx/templates/simple/simple_search.html | |
| parent | 6ccd557650a0892a3c59ac157a781f9a12beb56e (diff) | |
| parent | d597f36e07ec9e144fabce70fcfb0183107646f6 (diff) | |
Merge pull request #894 from dalf/simple-aria-1
[enh] simple: basic ARIA fixes
Diffstat (limited to 'searx/templates/simple/simple_search.html')
| -rw-r--r-- | searx/templates/simple/simple_search.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/searx/templates/simple/simple_search.html b/searx/templates/simple/simple_search.html index 6a5cdd9e7..218f70496 100644 --- a/searx/templates/simple/simple_search.html +++ b/searx/templates/simple/simple_search.html @@ -1,9 +1,9 @@ -<form id="search" method="{{ method or 'POST' }}" action="{{ url_for('search') }}"> +<form id="search" method="{{ method or 'POST' }}" action="{{ url_for('search') }}" role="search"> <div id="search_header"> <div class="search_box"> - <input id="q" autofocus name="q" type="text" placeholder="{{ _('Search for...') }}" tabindex="1" autocomplete="off" spellcheck="false" dir="auto" {% if q %}value="{{ q }}"{% endif %} > - <button id="clear_search" type="button" tabindex="-1"><span class="hide_if_nojs">{{ icon_big('close') }}</span><span class="show_if_nojs">{{ _('clear') }}</span></button> - <button id="send_search" type="submit" tabindex="-1"><span class="hide_if_nojs">{{ icon_big('search-outline') }}</span><span class="show_if_nojs">{{ _('search') }}</span></button> + <input id="q" autofocus name="q" type="text" placeholder="{{ _('Search for...') }}" autocomplete="off" spellcheck="false" dir="auto" value="{{ q or '' }}"> + <button id="clear_search" type="reset" aria-label="{{ _('clear') }}"><span class="hide_if_nojs">{{ icon_big('close') }}</span><span class="show_if_nojs">{{ _('clear') }}</span></button> + <button id="send_search" type="submit" aria-label="{{ _('search') }}"><span class="hide_if_nojs">{{ icon_big('search-outline') }}</span><span class="show_if_nojs">{{ _('search') }}</span></button> </div> </div> </form> |