Skip to content

Commit

Permalink
Add default aria label for navigation items
Browse files Browse the repository at this point in the history
  • Loading branch information
owenatgov committed Feb 19, 2021
1 parent 220193a commit ad4ef48
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<% navigation_aria_label ||= "Top level" %>

<% if navigation_items.any? %>
<button role="button" class="govuk-header__menu-button gem-c-header__menu-button govuk-js-header-toggle" aria-controls="navigation" aria-label="Show or hide Top Level Navigation">Menu</button>
<%= tag.nav class: "gem-c-header__nav", aria: { label: navigation_aria_label } do %>
Expand Down

0 comments on commit ad4ef48

Please sign in to comment.