summaryrefslogtreecommitdiff
path: root/searx/templates
diff options
context:
space:
mode:
authorMarkus <markus@venom.fritz.box>2024-09-15 17:08:57 +0200
committerMarkus Heiser <markus.heiser@darmarIT.de>2024-09-21 15:23:21 +0200
commit8b8d830fd367386c5f06ae5a427028dc12642cd1 (patch)
treefea6920444007a4835e8cd8214f8af45ff58e09a /searx/templates
parent67fcf3cc67c842aebd512922a751d0ebe1bb9264 (diff)
downloadsearxng-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>
Diffstat (limited to 'searx/templates')
-rw-r--r--searx/templates/simple/preferences/infinite_scroll.html2
-rw-r--r--searx/templates/simple/preferences/search_on_category_select.html2
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