Skip to content

Commit

Permalink
Consistent aria-labelled by label for primary navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
paulrobertlloyd committed Aug 11, 2022
1 parent 85000f1 commit d5140be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x-govuk/components/primary-navigation/template.njk
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<nav class="x-govuk-primary-navigation {%- if params.classes %} {{ params.classes }}{% endif -%}" aria-labelledby="x-govuk-primary-navigation-heading"
<nav class="x-govuk-primary-navigation {%- if params.classes %} {{ params.classes }}{% endif -%}" aria-labelledby="primary-navigation-heading"
{%- for attribute, value in params.attributes %} {{ attribute }}="{{ value }}"{% endfor %}>
<div class="govuk-width-container">
<h2 class="govuk-visually-hidden" id="x-govuk-primary-navigation-heading">{{ params.visuallyHiddenTitle or "Menu" }}</h2>
<h2 class="govuk-visually-hidden" id="primary-navigation-heading">{{ params.visuallyHiddenTitle or "Menu" }}</h2>
<ul class="x-govuk-primary-navigation__list">
{%- for item in params.items %}
{% if item.href %}
Expand Down

0 comments on commit d5140be

Please sign in to comment.