mirror of https://github.com/searxng/searxng.git
[fix] simple template: drop useless ``aria-labelledby`` attributes
This patch removes the ``aria-labelledby`` attributes for which there is no tag with the corresponding ID. Reported-by: @glanham-jr https://github.com/searxng/searxng/issues/3793#issuecomment-2351689483 Signed-off-by: Markus <markus@venom.fritz.box>
This commit is contained in:
parent
5ad0214bd4
commit
0b3724651e
|
@ -8,7 +8,7 @@
|
||||||
{%- macro tab_header(name, id, label, checked) -%}
|
{%- macro tab_header(name, id, label, checked) -%}
|
||||||
<input type="radio" name="{{ name }}" id="tab-{{ id }}" {% if checked is sameas true %}checked="checked"{% endif %}>
|
<input type="radio" name="{{ name }}" id="tab-{{ id }}" {% if checked is sameas true %}checked="checked"{% endif %}>
|
||||||
<label id="tab-label-{{ id }}" for="tab-{{ id }}" role="tab" aria-controls="tab-content-{{ id }}">{{ label }}</label>
|
<label id="tab-label-{{ id }}" for="tab-{{ id }}" role="tab" aria-controls="tab-content-{{ id }}">{{ label }}</label>
|
||||||
<section id="tab-content-{{ id }}" role="tabpanel" aria-labelledby="tab-label-{{ id }}" aria-hidden="false">
|
<section id="tab-content-{{ id }}" role="tabpanel" aria-hidden="false">
|
||||||
{%- endmacro -%}
|
{%- endmacro -%}
|
||||||
|
|
||||||
{%- macro tab_footer() -%}
|
{%- macro tab_footer() -%}
|
||||||
|
@ -90,7 +90,7 @@
|
||||||
<td class="{{ label }}">{{- '' -}}
|
<td class="{{ label }}">{{- '' -}}
|
||||||
{%- if stats[engine_name].time != None -%}
|
{%- if stats[engine_name].time != None -%}
|
||||||
<span class="stacked-bar-chart-value">{{- stats[engine_name].time -}}</span>{{- '' -}}
|
<span class="stacked-bar-chart-value">{{- stats[engine_name].time -}}</span>{{- '' -}}
|
||||||
<span class="stacked-bar-chart" aria-labelledby="{{engine_name}}_chart" aria-hidden="true">
|
<span class="stacked-bar-chart" aria-hidden="true">
|
||||||
{%- if max_rate95 is not none and max_rate95 > 0 -%}
|
{%- if max_rate95 is not none and max_rate95 > 0 -%}
|
||||||
<div class="stacked-bar-chart-median bar{{ (100 * (stats[engine_name].time / max_rate95))|round }}"></div>{{- '' -}}
|
<div class="stacked-bar-chart-median bar{{ (100 * (stats[engine_name].time / max_rate95))|round }}"></div>{{- '' -}}
|
||||||
<div class="stacked-bar-chart-rate80 bar{{ (100 * ((stats[engine_name].rate80 - stats[engine_name].time) / max_rate95))|round }}"></div>{{- '' -}}
|
<div class="stacked-bar-chart-rate80 bar{{ (100 * ((stats[engine_name].rate80 - stats[engine_name].time) / max_rate95))|round }}"></div>{{- '' -}}
|
||||||
|
@ -127,7 +127,7 @@
|
||||||
{%- if checker_result or errors -%}
|
{%- if checker_result or errors -%}
|
||||||
<td class="{{ label }} column-reliability">{{- '' -}}
|
<td class="{{ label }} column-reliability">{{- '' -}}
|
||||||
<a href="{{ url_for('stats', engine=engine_name|e) }}">{{- '' -}}
|
<a href="{{ url_for('stats', engine=engine_name|e) }}">{{- '' -}}
|
||||||
<span aria-labelledby="{{engine_name}}_reliability">
|
<span>
|
||||||
{{- icon_big('warning', 'The engine is not reliabled') }} {{ r -}}
|
{{- icon_big('warning', 'The engine is not reliabled') }} {{ r -}}
|
||||||
</span>{{- '' -}}
|
</span>{{- '' -}}
|
||||||
</a>{{- '' -}}
|
</a>{{- '' -}}
|
||||||
|
|
Loading…
Reference in New Issue