Skip to content

Commit

Permalink
Consistent aria-labelled by label for sub navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
paulrobertlloyd committed Aug 11, 2022
1 parent d5140be commit bc7538f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x-govuk/components/sub-navigation/template.njk
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<nav class="x-govuk-sub-navigation{%- if params.classes %} {{ params.classes }}{% endif %}" aria-labelledby="x-govuk-sub-navigation-heading"
<nav class="x-govuk-sub-navigation{%- if params.classes %} {{ params.classes }}{% endif %}" aria-labelledby="sub-navigation-heading"
{%- for attribute, value in params.attributes %} {{ attribute }}="{{value}}"{% endfor %}>
<h2 class="govuk-visually-hidden" id="x-govuk-sub-navigation-heading">{{ params.visuallyHiddenTitle or "Pages in this section" }}</h2>
<h2 class="govuk-visually-hidden" id="sub-navigation-heading">{{ params.visuallyHiddenTitle or "Pages in this section" }}</h2>
{% for theme, items in params.items | groupby("theme") %}
{% if theme != "undefined" %}
<h3 class="x-govuk-sub-navigation__theme">{{ theme }}</h3>
Expand Down

0 comments on commit bc7538f

Please sign in to comment.