Skip to content

Commit 1786a5f

Browse files
authored
Merge pull request #520 from alphagov/feature/closer-govuk-template-alignment
Closer alignment to govuk template
2 parents b4458b2 + e73fd58 commit 1786a5f

5 files changed

Lines changed: 11 additions & 6 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## Unreleased changes
2+
3+
- Update[ template html syntax](https://github.com/alphagov/tech-docs-gem/pull/520) to more closely match gov.uk design template
4+
- bump govuk-frontend from [6.2.0 to 6.3.0](https://github.com/alphagov/tech-docs-gem/pull/517)
5+
16
## 6.3.0
27

38
- Bugfix [issue 258](https://github.com/alphagov/tech-docs-template/issues/258) - page layout structure to remove whitespace on short pages ([pull request 513](https://github.com/alphagov/tech-docs-gem/pull/513))

lib/source/layouts/_footer.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div class="govuk-footer app-footer" role="contentinfo">
1+
<div class="govuk-footer app-footer">
22
<% if config[:tech_docs][:show_govuk_logo] %>
33
<svg focusable="false" role="presentation" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 60" height="30" width="32" fill="currentcolor" class="govuk-footer__crown">
44
<g>

lib/source/layouts/_header.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div class="govuk-header app-header" role="banner" data-module="govuk-header">
1+
<div class="govuk-header app-header">
22
<div class="govuk-header__container govuk-header__container--full-width">
33
<div class="govuk-header__logo">
44
<% if config[:tech_docs][:service_link] %>

lib/source/layouts/_service_navigation.erb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
<div class="govuk-width-container">
1+
<div class="govuk-service-navigation app-pane__navigation" data-module="govuk-service-navigation">
2+
<div class="govuk-width-container">
23
<div class="govuk-service-navigation__container">
34
<nav aria-label="Menu" class="govuk-service-navigation__wrapper">
45
<button type="button" class="govuk-service-navigation__toggle govuk-js-service-navigation-toggle" aria-controls="navigation" hidden aria-hidden="true">
@@ -20,3 +21,4 @@
2021
</nav>
2122
</div>
2223
</div>
24+
</div>

lib/source/layouts/core.erb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,11 @@
5050

5151
<body class="govuk-template__body">
5252
<script>document.body.className += ' js-enabled' + ('noModule' in HTMLScriptElement.prototype ? ' govuk-frontend-supported' : '');</script>
53-
<header class="govuk-template__header app-header" role="banner" data-module="govuk-header">
53+
<header class="govuk-template__header app-header">
5454
<%= partial 'layouts/header' %>
5555
</header>
5656
<% if config[:tech_docs][:header_links] %>
57-
<div class="govuk-service-navigation app-pane__navigation" data-module="govuk-service-navigation">
5857
<%= partial 'layouts/service_navigation' %>
59-
</div>
6058
<% end %>
6159

6260

0 commit comments

Comments
 (0)