0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-12-01 11:41:20 +01:00

Ensure navigation headings on search results correctly label the relevant nav element

This commit is contained in:
Helen C 2019-06-06 09:11:40 +01:00 committed by Thibaud Colas
parent 7e19f28ff5
commit 6e32c6749b
2 changed files with 4 additions and 4 deletions

View File

@ -12,8 +12,8 @@
{% search_other %}
{% if pages.object_list.supports_facet %}
<nav class="listing-filter">
<h3 class="filter-title">{% trans "Page types" %}</h3>
<nav class="listing-filter" aria-labelledby="page-types-title">
<h3 id="page-types-title" class="filter-title">{% trans "Page types" %}</h3>
<ul class="filter-options">
{% if not selected_content_type %}
<li style="background-color: #E6E6E6">All ({{ all_pages.count }})</li>

View File

@ -1,6 +1,6 @@
{% load i18n %}
<nav class="listing-filter">
<h3 class="filter-title">{% trans "Other searches" %}</h3>
<nav class="listing-filter" aria-labelledby="other-searches-title">
<h3 id="other-searches-title" class="filter-title">{% trans "Other searches" %}</h3>
<ul class="filter-options">
{{ options_html }}
</ul>