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:
parent
7e19f28ff5
commit
6e32c6749b
@ -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>
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user