Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update page template examples #1975

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# NHS digital service manual Changelog

## Unreleased
:wrench: **Maintenance**
- Update page template examples to make the default example size l and inside the grid system

## 6.3.0 – 17 April 2024
:new: **New features**
- Add page on new accessibility requirements: WCAG 2.2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
{% block content %}
<div class="nhsuk-grid-row">
<div class="nhsuk-grid-column-two-thirds">
<h1>
<h1 class="nhsuk-heading-xl">
Content page template
</h1>
</div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
{% extends "includes/template.njk" %}

{% block content %}
<h1>Default page template</h1>
<div class="nhsuk-grid-row">
<div class="nhsuk-grid-column-two-thirds">
<h1 class="nhsuk-heading-l">
Default page template
</h1>
</div>
</div>
{% endblock %}
2 changes: 2 additions & 0 deletions app/views/design-system/styles/page-template/index.njk
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@

<p>The content page template example includes navigation and search in the <a href="/design-system/components/header">header</a> and a <a href="/design-system/components/back-link">breadcrumbs</a> component.</p>

<p>The <code>{{ "<h1>" | escape }}</code> uses a class of <code>nhsuk-heading-xl</code> as content pages are often have more content than transactional pages and may have need for more heading sizes.</p>
edwardhorsford marked this conversation as resolved.
Show resolved Hide resolved

{{ designExample({
group: "styles",
item: "page-template",
Expand Down