diff options
author | Markus <markus@venom.fritz.box> | 2024-09-15 17:08:57 +0200 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarIT.de> | 2024-09-21 15:23:21 +0200 |
commit | 8b8d830fd367386c5f06ae5a427028dc12642cd1 (patch) | |
tree | fea6920444007a4835e8cd8214f8af45ff58e09a | |
parent | 67fcf3cc67c842aebd512922a751d0ebe1bb9264 (diff) | |
download | searxng-8b8d830fd367386c5f06ae5a427028dc12642cd1.tar.gz searxng-8b8d830fd367386c5f06ae5a427028dc12642cd1.zip |
[fix] simple template: add ID to elements used for aria-labelledby
The ``aria-labelledby`` [1] attribute identifies the element that labels the
element it is applied to. The templates ``infinite_scroll.html`` and
``search_on_category_select.html`` define a ``aria-labelledby`` at the <input>
tag but miss the id in the <div> with the description.
[1] https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-labelledby
Signed-off-by: Markus <markus@venom.fritz.box>
-rw-r--r-- | searx/templates/simple/preferences/infinite_scroll.html | 2 | ||||
-rw-r--r-- | searx/templates/simple/preferences/search_on_category_select.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/searx/templates/simple/preferences/infinite_scroll.html b/searx/templates/simple/preferences/infinite_scroll.html index cda8008c9..4ed34e438 100644 --- a/searx/templates/simple/preferences/infinite_scroll.html +++ b/searx/templates/simple/preferences/infinite_scroll.html @@ -10,7 +10,7 @@ {%- endif -%}{{- ' ' -}} >{{- '' -}} </p>{{- '' -}} - <div class="description"> + <div class="description" id="pref_infinite_scroll"> {{- _('Automatically load next page when scrolling to bottom of current page') -}} </div>{{- '' -}} </fieldset>{{- '' -}} diff --git a/searx/templates/simple/preferences/search_on_category_select.html b/searx/templates/simple/preferences/search_on_category_select.html index 76e970fa2..b7700b3b8 100644 --- a/searx/templates/simple/preferences/search_on_category_select.html +++ b/searx/templates/simple/preferences/search_on_category_select.html @@ -10,7 +10,7 @@ {%- endif -%}{{- ' ' -}} >{{- '' -}} </p>{{- '' -}} - <div class="description"> + <div class="description" id="pref_search_on_category_select"> {{- _('Perform search immediately if a category selected. Disable to select multiple categories') -}} </div>{{- '' -}} </fieldset>{{- '' -}}
\ No newline at end of file |