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 f9dd6da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

* Add spacing to cookie banner confirmation message ([PR #1936](https://github.com/alphagov/govuk_publishing_components/pull/1936))
* Fix Sass warning for extending a compound selector ([PR #1933](https://github.com/alphagov/govuk_publishing_components/pull/1933))
* Add default aria label for navigation items (PR [#1946](https://github.com/alphagov/govuk_publishing_components/pull/1946))

## 24.3.0

Expand Down
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 f9dd6da

Please sign in to comment.