Skip to content

Commit

Permalink
Merge pull request #286 from alphagov/update-govuk-frontend-v4.0.0
Browse files Browse the repository at this point in the history
Update to GOV.UK Frontend v4.0.0
  • Loading branch information
Vanita Barrett committed Dec 17, 2021
2 parents 5f8c197 + 02c09ca commit 84a1839
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions lib/source/layouts/_header.erb
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@
</div>
<% if config[:tech_docs][:header_links] %>
<div class="govuk-header__content">
<button type="button" class="govuk-header__menu-button govuk-js-header-toggle" aria-controls="navigation" aria-label="Show or hide Top Level Navigation">Menu</button>
<nav>
<ul id="navigation" class="govuk-header__navigation govuk-header__navigation--end" aria-label="Top Level Navigation">
<nav class="govuk-header__navigation govuk-header__navigation--end" aria-label="Menu">
<button type="button" class="govuk-header__menu-button govuk-js-header-toggle" aria-controls="navigation" aria-label="Show or hide menu">Menu</button>
<ul id="navigation" class="govuk-header__navigation-list">
<% config[:tech_docs][:header_links].each do |title, path| %>
<li class="govuk-header__navigation-item<% if active_page(path) %> govuk-header__navigation-item--active<% end %>">
<a class="govuk-header__link" href="<%= url_for path %>"><%= title %></a>
Expand Down
2 changes: 1 addition & 1 deletion lib/source/layouts/core.erb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

<div class="app-pane">
<div class="app-pane__header toc-open-disabled">
<a href="#content" class="govuk-skip-link">Skip to main content</a>
<a href="#content" class="govuk-skip-link" data-module="govuk-skip-link">Skip to main content</a>

<%= partial 'layouts/header' %>
</div>
Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"lint": "standard"
},
"dependencies": {
"govuk-frontend": "^3.13.0"
"govuk-frontend": "^4.0.0"
},
"devDependencies": {
"standard": "^14.3.4"
Expand Down

0 comments on commit 84a1839

Please sign in to comment.