Skip to content

Commit 56dd558

Browse files
jakecosgrovemark-r-bjssemmagiffordRossBugginsNHSalexcolbeck1
authored
Mobile responsiveness and styling, new content, update ruby version (#79)
* Added mention of 'message cascades' in routing plan content for 'parallel send' feature mention. * 'or' replaced with 'and' * Message status page created - changes to /using-nhs-notify/mesh to match MESH guidance - sender IDs changed to sender names * Emma 2i requested changes * Added /using-nhs-notify/nhs-app-templates, /using-nhs-notify/email-templates, /using-nhs-notify/text-message-templates and /using-nhs-notify/letter-templates. These are based on the Confluence pages https://nhsd-confluence.digital.nhs.uk/pages/viewpage.action?spaceKey=RIS&title=3.8+Creating+letter+templates onwards, with some minor tweaks to word ordering. Romy has approved this content now. Uploaded the standardised Word doc templates for all 4 channels to /assets/worddocs, and linked to these. Craig in cyber security approved this approach (see ticket for screenshot). Updated /using-nhs-notify/personalisation in line with the Confluence page. The FAQs from onboarding indicated there's a user need to provide the PDS personalisation fields. I also added content on how users provide their own personalisation data, in line with Tan's Confluence page https://nhsd-confluence.digital.nhs.uk/display/RIS/NHS+Notify+%7C+Personalisation+Fields. In /pricing/text-messages, I replaced 'it will count as more than one message' with 'it will be charged as more than one message'. This was prompted by a comment from Romy on the text message template content. I tweaked the content to match the later version of the UI prototype, which we based on findings from user research. * Removed mention of bank holidays from emails and text message delivery times. * Removed unnecessary bullets and headings anchor links in Text message templates. Updated link text for the 4 template pages in the Using NHS Notify parent page - removed 'Creating...' from the start of each link. * Fixed typo in /text-message-templates. Removed 'Creating...' from links on /using-nhs-notify. * Updated names of Word docs to replace spaces with hyphens and make all lower case. Updated downloadable links to follow the approach Jake researched, for example [letter template]({% link assets/worddocs/letter-template-nhs-notify.docx %}) * Removed unnecessary space from line 26 on docs/pages/using-nhs-notify/letter-templates. * Update accept.txt Includes: - Noto - URL - ctrl - pending_enrichment - unnotified - permanent_failure - temporary_failure - technical_failure - precompiled - validation_failed - fullName - namePrefix - clientRef * In /using-nhs-notify/delivery-times#letters, replaced the sentence 'Once your letter has been sent, it can take...' with 'Once you've provided us with recipients' NHS numbers, it can take up to 2 working days for our suppliers to dispatch your letter'. I also added anchor links to the top of the same page, /using-nhs-notify/delivery-times, to make navigation easier. * Added content on what users need to do in order to use recipient contact details that are outside of PDS. * Emma recommendations * Removed address_line_x, clientRef, recipientContactValue and template from the bulleted list of personalisation fields from PDS as these are for internal use only. Restructured the first paragraph under ### Personal Demographics Service (PDS) personalisation fields. This was based off a conversation with Jake and it aims to clarify the link between PDS, NHS numbers and personalisation fields. * In /workspaces/nhs-notify-web-cms-dev/docs/_sass/_nhsnotify.scss I added the line 'flex-wrap: wrap;' in the following code: .nhsuk-header__navigation-list { justify-content: flex-start; flex-wrap: wrap; } This is an interim step to make the main nav list items wrap correctly when the site is viewed on a mobile device. It's not our ultimate solution but it makes the site more mobile responsive and accessible. * Removed mentions of date of birth from failed message status descriptions. Removed date of birth as as an example of a column header in a MESH request. * Added link to NHS Notify MESH documentation in /using-nhs-notify/mesh * Squashed commit of the following: commit 7b904fc Author: Ross Buggins <[email protected]> Date: Tue Nov 19 17:02:42 2024 +0000 Quick and easy js to auto hide. commit 8aed356 Author: Jake Cosgrove <[email protected]> Date: Tue Nov 19 16:05:22 2024 +0000 Developer banner and new site banner commit a3d47d2 Author: Jake Cosgrove <[email protected]> Date: Mon Nov 11 15:47:17 2024 +0000 removed phase banner and underlines from primary nav list items when hovered commit 3a30f41 Author: Jake Cosgrove <[email protected]> Date: Mon Nov 11 13:50:40 2024 +0000 removed border from phase banner commit fc61be5 Author: Jake Cosgrove <[email protected]> Date: Fri Nov 8 16:32:05 2024 +0000 Added phase banner component and related sass. Added new template for including pages of content that does not need a side-navigation. commit 45d34e6 Author: Jake Cosgrove <[email protected]> Date: Tue Nov 5 21:59:47 2024 +0000 two-third column tests * Changed first subheading to a h2 from h3 * Removed the other phase banners from Ross' test * removed phase banner includes due to component not being tested or released by developer * Update personalisation.md * First draft updated guidance * Requested changes * Changes from Alex's review: - corrected typo's - added missing anchor link - included image of example inbox showing sender name and 'from' address * Romy suggested that we use screenshots to show where the sender names appear for NHS App and SMS. This commit includes additional images to support user understanding of sender names and where they sit in context. * This commit includes: - new HTML includes specific for images with captions so they fit 100% of their container - images on pages use new includes - inset text has override style class to reduce margin-top - side nav now disappears when below 768px breakpoint (need to talk to design team about mobile solution) * Added the onboard with NHS Notify page to our main site to keep information in one place - requested by Amina in onboarding/ engagement. * Added content about sending text message sender names for approval with NCSC. * Use new image-with-text.html includes * Changes from Emma/ Jake discussion Removes numbered steps from /get-started and introduces onboarding as a section in /get-started * Content changes following Emma's 2i * Added 'new' to text message sender names * Aligns side navigation styling to NHS UK frontend by removing indents from 'child' pages * This commit includes: - New breadcrumb.html includes to support navigation - Updated styling to the side navigation to match the NHS Design system - Updated side navigation to exclude parent pages - primary-navigation.html updated to include mobile responsive dropdown (needs future commit to patch) - New override css to remove margin-bottom from breadcrumb * Header styling fixes - janky fixes to enable the menu dropdown to work at mobile breakpoints. * Emma 2i requested changes: - add and change link to sandbox environments - Change 'lead in line' for details component in step 9 - replace(s) from device(s) - rephrase bullets in step 9 'Prove you have developed your integration securely' to statements instead of questions * Silly apostrophe syntax change * Typo correction. * Pause 'Onboard with NHS Notify' migration. The migration of this page from the service catalogue has paused until changes to the onboarding process are confirmed and accurately reflected in the content. * Changes: - Moved 'text message sender name' to last section of page to reflect preferred channel order of NHS Notify - removed 'return addresses for letters heading' - reordered bulleted list of anchor links to reflect heading structure * update ruby version --------- Co-authored-by: Mark R <[email protected]> Co-authored-by: emmagifford <[email protected]> Co-authored-by: Ross Buggins <[email protected]> Co-authored-by: alexcolbeck1 <[email protected]>
1 parent 4b3167d commit 56dd558

File tree

12 files changed

+476
-94
lines changed

12 files changed

+476
-94
lines changed

.github/workflows/jekyll-gh-pages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
node-version: 18
4242
- run: npm ci
4343
- name: Setup Ruby
44-
uses: ruby/setup-ruby@8575951200e472d5f2d95c625da0c7bec8217c42 # v1.161.0
44+
uses: ruby/setup-ruby@086ffb1a2090c870a3f881cc91ea83aa4243d408 # v1.195.0
4545
with:
4646
ruby-version: "3.2" # Not needed with a .ruby-version file
4747
bundler-cache: true # runs 'bundle install' and caches installed gems automatically

.github/workflows/stage-4-acceptance.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -131,19 +131,19 @@ jobs:
131131
with:
132132
node-version: 18
133133
- run: npm ci
134-
working-directory: './docs'
134+
working-directory: "./docs"
135135
- name: Setup Ruby
136-
uses: ruby/setup-ruby@8575951200e472d5f2d95c625da0c7bec8217c42 # v1.161.0
136+
uses: ruby/setup-ruby@086ffb1a2090c870a3f881cc91ea83aa4243d408 # v1.195.0
137137
with:
138-
ruby-version: '3.1'
138+
ruby-version: "3.1"
139139
bundler-cache: true
140140
cache-version: 0
141-
working-directory: './docs'
141+
working-directory: "./docs"
142142
- name: Setup Pages
143143
id: pages
144144
uses: actions/configure-pages@v5
145145
with:
146-
working-directory: './docs'
146+
working-directory: "./docs"
147147
- name: Build with Jekyll
148148
working-directory: ./docs
149149
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"

docs/_includes/breadcrumb.html

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
<nav class="nhsnotify-breadcrumb" aria-label="Breadcrumb">
2+
3+
<!-- Desktop breadcrumb -->
4+
5+
<ol class="nhsuk-breadcrumb__list">
6+
<!-- Level 1 -->
7+
<li class="nhsuk-breadcrumb__item"><a class="nhsuk-breadcrumb__link" href="{{site.baseurl}}/">Home</a></li>
8+
<!-- Level 2 -->
9+
{% if page.parent == "Features" %}
10+
<li class="nhsuk-breadcrumb__item"><a class="nhsuk-breadcrumb__link" href="{{site.baseurl}}/features">Features</a>
11+
</li>
12+
{% endif %}
13+
{% if page.parent == "Pricing" %}
14+
<li class="nhsuk-breadcrumb__item"><a class="nhsuk-breadcrumb__link" href="{{site.baseurl}}/pricing">Pricing</a>
15+
</li>
16+
{% endif %}
17+
{% if page.parent == "Using NHS Notify" %}
18+
<li class="nhsuk-breadcrumb__item"><a class="nhsuk-breadcrumb__link" href="{{site.baseurl}}/using-nhs-notify">Using
19+
NHS Notify</a>
20+
</li>
21+
{% endif %}
22+
{% if page.parent == "Support" %}
23+
<li class="nhsuk-breadcrumb__item"><a class="nhsuk-breadcrumb__link" href="{{site.baseurl}}/support">Support</a>
24+
</li>
25+
{% endif %}
26+
{% if page.parent == "Get started" %}
27+
<li class="nhsuk-breadcrumb__item"><a class="nhsuk-breadcrumb__link" href="{{site.baseurl}}/get-started">Get
28+
started</a>
29+
</li>
30+
{% endif %}
31+
</ol>
32+
33+
<!-- Mobile breadcrumb back -->
34+
35+
<p class="nhsuk-breadcrumb__back">
36+
<!-- Features -->
37+
{% if page.title == "Features" %}
38+
<a class="nhsuk-breadcrumb__backlink" href="{{site.baseurl}}/">
39+
<span class="nhsuk-u-visually-hidden">Back to &nbsp;</span>
40+
Home
41+
</a>
42+
{% endif %}
43+
{% if page.parent == "Features" %}
44+
<a class="nhsuk-breadcrumb__backlink" href="{{site.baseurl}}/features">
45+
<span class="nhsuk-u-visually-hidden">Back to &nbsp;</span>
46+
Features
47+
</a>
48+
{% endif %}
49+
<!-- Pricing -->
50+
{% if page.title == "Pricing" %}
51+
<a class="nhsuk-breadcrumb__backlink" href="{{site.baseurl}}/">
52+
<span class="nhsuk-u-visually-hidden">Back to &nbsp;</span>
53+
Home
54+
</a>
55+
{% endif %}
56+
{% if page.parent == "Pricing" %}
57+
<a class="nhsuk-breadcrumb__backlink" href="{{site.baseurl}}/pricing">
58+
<span class="nhsuk-u-visually-hidden">Back to &nbsp;</span>
59+
Pricing
60+
</a>
61+
{% endif %}
62+
<!-- Using NHS Notify -->
63+
{% if page.title == "Using NHS Notify" %}
64+
<a class="nhsuk-breadcrumb__backlink" href="{{site.baseurl}}/">
65+
<span class="nhsuk-u-visually-hidden">Back to &nbsp;</span>
66+
Home
67+
</a>
68+
{% endif %}
69+
{% if page.parent == "Using NHS Notify" %}
70+
<a class="nhsuk-breadcrumb__backlink" href="{{site.baseurl}}/using-nhs-notify">
71+
<span class="nhsuk-u-visually-hidden">Back to &nbsp;</span>
72+
Using NHS Notify
73+
</a>
74+
{% endif %}
75+
<!-- Support -->
76+
{% if page.title == "Support" %}
77+
<a class="nhsuk-breadcrumb__backlink" href="{{site.baseurl}}/">
78+
<span class="nhsuk-u-visually-hidden">Back to &nbsp;</span>
79+
Home
80+
</a>
81+
{% endif %}
82+
<!-- Get started -->
83+
{% if page.title == "Get started" %}
84+
<a class="nhsuk-breadcrumb__backlink" href="{{site.baseurl}}/">
85+
<span class="nhsuk-u-visually-hidden">Back to &nbsp;</span>
86+
Home
87+
</a>
88+
{% endif %}
89+
{% if page.parent == "Get started" %}
90+
<a class="nhsuk-breadcrumb__backlink" href="{{site.baseurl}}/get-started">
91+
<span class="nhsuk-u-visually-hidden">Back to &nbsp;</span>
92+
Get started
93+
</a>
94+
{% endif %}
95+
</p>
96+
</nav>

docs/_includes/header.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<header class="nhsuk-header" role="banner">
22
<div class="nhsuk-header__container">
33
<div class="nhsuk-header__logo">
4-
<a class="nhsuk-header__link nhsuk-header__link--service" href="{{ site.baseurl }}/" aria-label="NHS homepage">
4+
<a class="nhsuk-header__link nhsuk-header__link--service" href="{{ site.baseurl }}/" aria-label="NHS Notify homepage">
55
<svg class="nhsuk-logo" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 16" height="40" width="100">
66
<path class="nhsuk-logo__background" fill="#005eb8" d="M0 0h40v16H0z"></path>
77
<path class="nhsuk-logo__text" fill="#fff"

docs/_includes/primary-navigation.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,17 @@
77
</a>
88
</li>
99
{% endfor -%}
10+
<li class="nhsuk-mobile-menu-container">
11+
<button class="nhsuk-header__menu-toggle nhsuk-header__navigation-link" id="toggle-menu" aria-expanded="false">
12+
<span class="nhsuk-u-visually-hidden">Browse</span>
13+
More
14+
<svg class="nhsuk-icon nhsuk-icon__chevron-down" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"
15+
aria-hidden="true" focusable="false">
16+
<path
17+
d="M15.5 12a1 1 0 0 1-.29.71l-5 5a1 1 0 0 1-1.42-1.42l4.3-4.29-4.3-4.29a1 1 0 0 1 1.42-1.42l5 5a1 1 0 0 1 .29.71z">
18+
</path>
19+
</svg>
20+
</button>
21+
</li>
1022
</ul>
1123
</nav>

docs/_layouts/page.html

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,12 @@
1919
| sort: 'name', 'last'
2020
-%}
2121
<div class="nhsuk-width-container">
22-
<main class="nhsuk-main-wrapper" id="maincontent" role="main">
22+
{%- include breadcrumb.html -%}
23+
<main class="nhsuk-main-wrapper--s" id="maincontent" role="main">
2324
<div class="nhsuk-grid-row">
2425
<div class="nhsuk-grid-column-full">
2526
<div class="nhsnotify-pane">
26-
<div class="nhsnotify-pane__side-bar nhsuk-grid-column-one-quarter">
27+
<div class="nhsnotify-pane__side-bar">
2728
<nav class="nhsnotify-side-nav">
2829
<ul class="nhsuk-list nhsnotify-side-nav__list">
2930
{% for section in first_level %}
@@ -32,6 +33,7 @@
3233
{% endif %}
3334
{% assign sorted = section.items | sort: 'nav_order' %}
3435
{% for post in sorted %}
36+
{% unless post.has_children %}
3537
<li class="
3638
nhsnotify-side-nav__item
3739
{% if post.url == page.url %}
@@ -40,13 +42,14 @@
4042
">
4143
<a class="nhsnotify-side-nav__link" href="{{ site.baseurl | append: post.url }}">{{ post.title }}</a>
4244
</li>
45+
{% endunless %}
4346
{% endfor %}
4447
{% endfor %}
4548
</ul>
4649

4750
</nav>
4851
</div>
49-
<div class="nhsnotify-pane__main-content nhsuk-grid-column-three-quarters">
52+
<div class="nhsnotify-pane__main-content">
5053
{% if page.section != undefined %}
5154
<heading class="nhsuk-heading-s" style="margin-bottom: 0; color: #4c6272">{{ page.section }}</heading>
5255
{% endif %}

docs/_sass/_nhsnotify-side-nav.scss

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -60,18 +60,14 @@
6060
}
6161

6262
.nhsnotify-side-nav__item {
63-
padding: 4px 0 0.5em 1.3em;
64-
65-
&:first-child {
66-
padding-left: 0;
63+
padding: 4px 0 0.5em;
6764

6865
&.nhsnotify-side-nav__item--current {
6966
left: -1.2em;
70-
padding-left: 1em;
67+
padding-left: 0.75em;
7168
position: relative;
7269
}
7370
}
74-
}
7571

7672
.nhsnotify-side-nav__item--current {
7773
font-weight: 600;
@@ -100,14 +96,14 @@
10096
}
10197
}
10298

99+
// Mobile navigation
100+
.nhsnotify-index-navigation {
101+
@include nhsuk-responsive-padding(4, 'top');
102+
}
103+
103104
// Hide content on desktop
104105
.nhsnotify-u-hide-desktop {
105106
@include mq($from: desktop) {
106107
display: none;
107108
}
108109
}
109-
110-
// Mobile navigation
111-
.nhsnotify-index-navigation {
112-
@include nhsuk-responsive-padding(4, 'top');
113-
}

docs/_sass/_nhsnotify.scss

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,21 @@
6767
margin: 0;
6868
}
6969

70-
.nhsuk-header__navigation-list {
71-
justify-content: flex-centre;
70+
.nhsuk-header__navigation-item {
71+
padding-left: 0;
72+
padding-right: 0;
73+
}
74+
75+
.nhsuk-header__navigation-item:first-child .nhsuk-header__navigation-link {
76+
padding-left: 0;
77+
}
78+
79+
.nhsuk-header__navigation-item:nth-child(5) .nhsuk-header__navigation-link {
80+
padding-right: 0;
81+
}
82+
83+
.nhsuk-header__drop-down .nhsuk-header__navigation-item:first-child .nhsuk-header__navigation-link {
84+
padding-left: 16px;
7285
}
7386

7487
.nhsuk-header__navigation-link {
@@ -77,6 +90,7 @@
7790
&:hover {
7891
text-decoration: none;
7992
}
93+
8094
}
8195

8296
.nhsuk-phase-banner {
@@ -145,3 +159,16 @@
145159
@include nhsuk-responsive-margin(0, "top"); /* [4] */
146160
}
147161
}
162+
163+
// Breadcrumb spacing override
164+
165+
.nhsnotify-breadcrumb {
166+
@include print-hide();
167+
168+
padding-top: 20px;
169+
170+
+ .nhsuk-width-container .nhsuk-main-wrapper {
171+
margin-top: 20px;
172+
}
173+
174+
}

0 commit comments

Comments
 (0)