diff options
author | Noémi Ványi <kvch@users.noreply.github.com> | 2019-11-01 09:19:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-01 09:19:53 +0100 |
commit | 42d5e2c02cd4715a0e09411efbb249ef5d8defed (patch) | |
tree | 2d882ae8a7c383c8800dd75098864b3a28a741f8 | |
parent | 4e029b023a27580f8ae443645a8ae45b30f5f747 (diff) | |
parent | e9d90d06a9343bdfa26c6993bb3fcc3cf17ac3ac (diff) | |
download | searxng-42d5e2c02cd4715a0e09411efbb249ef5d8defed.tar.gz searxng-42d5e2c02cd4715a0e09411efbb249ef5d8defed.zip |
Merge pull request #1719 from Monogramm/feature/accessibility
Add aria labels for oscar buttons
-rw-r--r-- | searx/templates/oscar/search.html | 4 | ||||
-rw-r--r-- | searx/templates/oscar/search_full.html | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/searx/templates/oscar/search.html b/searx/templates/oscar/search.html index 59ee4688d..bf9a9af5f 100644 --- a/searx/templates/oscar/search.html +++ b/searx/templates/oscar/search.html @@ -3,9 +3,9 @@ <div class="row">
<div class="col-xs-12 col-md-8">
<div class="input-group search-margin">
- <input type="search" name="q" class="form-control" id="q" placeholder="{{ _('Search for...') }}" autocomplete="off" value="{{ q }}">
+ <input type="search" name="q" class="form-control" id="q" placeholder="{{ _('Search for...') }}" aria-label="{{ _('Search for...') }}" autocomplete="off" value="{{ q }}">
<span class="input-group-btn">
- <button type="submit" class="btn btn-default"><span class="hide_if_nojs">{{ icon('search') }}</span><span class="hidden active_if_nojs">{{ _('Start search') }}</span></button>
+ <button type="submit" class="btn btn-default" aria-label="{{ _('Start search') }}"><span class="hide_if_nojs">{{ icon('search') }}</span><span class="hidden active_if_nojs">{{ _('Start search') }}</span></button>
</span>
</div>
</div>
diff --git a/searx/templates/oscar/search_full.html b/searx/templates/oscar/search_full.html index 6fdae4028..fd8a9a393 100644 --- a/searx/templates/oscar/search_full.html +++ b/searx/templates/oscar/search_full.html @@ -6,9 +6,9 @@ {% else %}
<div class="input-group col-md-8 col-md-offset-2">
{% endif %}
- <input type="search" name="q" class="form-control input-lg autofocus" id="q" placeholder="{{ _('Search for...') }}" autocomplete="off" value="{{ q }}">
+ <input type="search" name="q" class="form-control input-lg autofocus" id="q" placeholder="{{ _('Search for...') }}" aria-label="{{ _('Search for...') }}" autocomplete="off" value="{{ q }}">
<span class="input-group-btn">
- <button type="submit" class="btn btn-default input-lg"><span class="hide_if_nojs">{{ icon('search') }}</span><span class="hidden active_if_nojs">{{ _('Start search') }}</span></button>
+ <button type="submit" class="btn btn-default input-lg" aria-label="{{ _('Start search') }}"><span class="hide_if_nojs">{{ icon('search') }}</span><span class="hidden active_if_nojs">{{ _('Start search') }}</span></button>
</span>
</div>
<div class="col-md-8 col-md-offset-2 advanced">
|