From 8b8d830fd367386c5f06ae5a427028dc12642cd1 Mon Sep 17 00:00:00 2001 From: Markus Date: Sun, 15 Sep 2024 17:08:57 +0200 Subject: [PATCH] [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 tag but miss the id in the
with the description. [1] https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-labelledby Signed-off-by: Markus --- searx/templates/simple/preferences/infinite_scroll.html | 2 +- .../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 -%}{{- ' ' -}} >{{- '' -}}

{{- '' -}} -
+
{{- _('Automatically load next page when scrolling to bottom of current page') -}}
{{- '' -}} {{- '' -}} 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 -%}{{- ' ' -}} >{{- '' -}}

{{- '' -}} -
+
{{- _('Perform search immediately if a category selected. Disable to select multiple categories') -}}
{{- '' -}} {{- '' -}} \ No newline at end of file