Skip to content

Commit da7be2b

Browse files
authored
Merge pull request #406 from alphagov/identify-current-page
Add aria-current to active header menu link
2 parents 556b4ac + cdf1a05 commit da7be2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/source/layouts/_header.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
<ul id="navigation" class="govuk-header__navigation-list">
4141
<% config[:tech_docs][:header_links].each do |title, path| %>
4242
<li class="govuk-header__navigation-item<% if active_page(path) %> govuk-header__navigation-item--active<% end %>">
43-
<a class="govuk-header__link" href="<%= get_path_to_resource config, path, current_page %>"><%= title %></a>
43+
<a class="govuk-header__link" href="<%= get_path_to_resource config, path, current_page %>"<% if active_page(path) %> aria-current="page"<% end %>><%= title %></a>
4444
</li>
4545
<% end %>
4646
</ul>

0 commit comments

Comments
 (0)