Skip to content

Commit

Permalink
Fix current sub-navigation item not being styled correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
paulrobertlloyd committed Mar 22, 2023
1 parent 6f1ca85 commit 1b34dd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x-govuk/components/sub-navigation/template.njk
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
{% endif %}
<ul class="x-govuk-sub-navigation__section">
{% for item in items %}
<li class="x-govuk-sub-navigation__section-item{% if item.parent %} x-govuk-sub-navigation__section-item--current{% endif %}">
<li class="x-govuk-sub-navigation__section-item{% if item.current %} x-govuk-sub-navigation__section-item--current{% endif %}">
<a class="x-govuk-sub-navigation__link" href="{{ item.href }}"{% if item.current %} aria-current="true"{% endif %}>{{ item.text }}</a>
{% if item.parent and item.children | length > 0 %}
<ul class="x-govuk-sub-navigation__section x-govuk-sub-navigation__section--nested">
Expand Down

0 comments on commit 1b34dd2

Please sign in to comment.