summaryrefslogtreecommitdiff
path: root/searx/templates/simple/macros.html
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2022-02-05 08:56:42 +0100
committerAlexandre FLAMENT <alexandre.flament@hesge.ch>2022-03-08 19:37:21 +0000
commita250ddadb9b366cf7aadf82ae97bf2fc4e837a87 (patch)
tree1fe101f3dbd8ce5f0b75a67cde1419c5004a642b /searx/templates/simple/macros.html
parente1319fc21c713cfb9675389ba38f37e10cf77cd2 (diff)
downloadsearxng-a250ddadb9b366cf7aadf82ae97bf2fc4e837a87.tar.gz
searxng-a250ddadb9b366cf7aadf82ae97bf2fc4e837a87.zip
[enh] simple: basic ARIA fixes
Diffstat (limited to 'searx/templates/simple/macros.html')
-rw-r--r--searx/templates/simple/macros.html8
1 files changed, 3 insertions, 5 deletions
diff --git a/searx/templates/simple/macros.html b/searx/templates/simple/macros.html
index a751ce187..637966715 100644
--- a/searx/templates/simple/macros.html
+++ b/searx/templates/simple/macros.html
@@ -56,11 +56,9 @@
{%- endmacro -%}
{%- macro tab_header(name, id, label) -%}
-<input type="radio" name="{{ name }}" id="tab_{{ id }}"/>
-<label for="tab_{{ id }}" role="tab"
- aria-controls="panel{{ id }}">{{ label }}</label>
-<section id="tab-content{{ id }}" role="tabpanel"
- aria-labelledby="{{ label }}" aria-hidden="false">
+<input type="radio" name="{{ name }}" id="tab-{{ id }}"/>
+<label id="tab-label-{{ label }}" for="tab-{{ id }}" role="tab" aria-controls="tab-content-{{ id }}">{{ label }}</label>
+<section id="tab-content-{{ id }}" role="tabpanel" aria-labelledby="tab-label-{{ label }}" aria-hidden="false">
{%- endmacro -%}
{%- macro tab_footer() -%}