You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+178Lines changed: 178 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,183 @@
1
1
# NHS App Frontend Changelog
2
2
3
+
## `v5.0.0` - UNRELEASED
4
+
5
+
### 💥 Breaking changes
6
+
7
+
Bumped `nhsuk-frontend` version to `v10.0.0` in [pull request #378](https://github.com/nhsuk/nhsapp-frontend/pull/378) - details are in the [nhsuk frontend release notes](https://github.com/nhsuk/nhsuk-frontend/releases).
8
+
9
+
#### Button group
10
+
11
+
Deprecated `nhsapp-button-group` component in [pull request #378](https://github.com/nhsuk/nhsapp-frontend/pull/378), as now available in `nhsuk-frontend`.
12
+
13
+
Swap `nhsapp-button-group` → with `nhsuk-button-group`.
<a class="nhsuk-u-font-size-19 nhsuk-link nhsuk-link--no-visited-state nhsuk-u-nowrap" href="#">View all <span class="nhsuk-u-visually-hidden">services</span></a>
82
+
</div>',
83
+
cards: [
84
+
{
85
+
...
86
+
}
87
+
]
88
+
}) }}
89
+
```
90
+
91
+
#### Icons
92
+
93
+
Updated icon names, following nhsuk frontend naming conventions in [pull request #381](https://github.com/nhsuk/nhsapp-frontend/pull/389).
94
+
95
+
Before:
96
+
97
+
`nhsapp-icon nhsapp-icon__account`
98
+
99
+
After:
100
+
101
+
`nhsapp-icon nhsapp-icon--account`
102
+
103
+
#### Card links
104
+
105
+
Replaced `params.html` with `params.descriptionHtml` in [pull request 403](https://github.com/nhsuk/nhsapp-frontend/pull/403).
106
+
107
+
Before:
108
+
109
+
```
110
+
{{ nhsappCard({
111
+
title: '...',
112
+
html: '...'
113
+
}) }}
114
+
```
115
+
116
+
After:
117
+
118
+
```
119
+
{{ nhsappCard({
120
+
title: '...',
121
+
descriptionHtml: '...'
122
+
}) }}
123
+
```
124
+
125
+
Updated logic for a card with no link and removed `params.readOnly`.
126
+
127
+
Before:
128
+
129
+
```
130
+
{{ nhsappCard({
131
+
title: 'Card title',
132
+
readOnly: 'true'
133
+
}) }}
134
+
```
135
+
136
+
After:
137
+
138
+
```
139
+
{{ nhsappCard({
140
+
title: 'Card title'
141
+
}) }}
142
+
```
143
+
144
+
Removed the card link with an icon in [pull request 405](https://github.com/nhsuk/nhsapp-frontend/pull/405).
145
+
146
+
## 🆕 New features
147
+
148
+
### New (web) header component
149
+
150
+
Added (web) header component in [pull request #390](https://github.com/nhsuk/nhsapp-frontend/pull/390), extending the NHS design system header and adding modifier classes, `nhsapp-u-hide-from-tablet` and `nhsapp-u-hide-until-tablet`, to show and hide nav items on different screen sizes.
151
+
152
+
### New NHS App colours
153
+
154
+
Added NHS App colours in [pull request #389](https://github.com/nhsuk/nhsapp-frontend/pull/392).
155
+
156
+
These are tints and shades extended from the NHS design system used on the NHS App tag and card links components.
<liclass="app-tabs__list-item"role="presentation"><aclass="app-tabs__tab nhsuk-link--no-visited-state"href="#html-default-{{ id }}"role="tab"id="tab_html-default-{{ id }}"aria-controls="html-default-{{ id }}">HTML</a></li>
29
-
<liclass="app-tabs__list-item"role="presentation"><aclass="app-tabs__tab nhsuk-link--no-visited-state"href="#nunjucks-default-{{ id }}"role="tab"id="tab_nunjucks-default-{{ id }}"aria-controls="nunjucks-default-{{ id }}">Nunjucks</a></li>
29
+
{%-ifshowNunjucksTab-%}
30
+
<liclass="app-tabs__list-item"role="presentation"><aclass="app-tabs__tab nhsuk-link--no-visited-state"href="#html-default-{{ id }}"role="tab"id="tab_html-default-{{ id }}"aria-controls="html-default-{{ id }}">HTML</a></li>
31
+
<liclass="app-tabs__list-item"role="presentation"><aclass="app-tabs__tab nhsuk-link--no-visited-state"href="#nunjucks-default-{{ id }}"role="tab"id="tab_nunjucks-default-{{ id }}"aria-controls="nunjucks-default-{{ id }}">Nunjucks</a></li>
32
+
{%-else-%}
33
+
<liclass="app-tabs__list-item"role="presentation"><aclass="app-tabs__tab nhsuk-link--no-visited-state"href="#html-default-{{ id }}"role="tab"id="tab_html-default-{{ id }}"aria-controls="html-default-{{ id }}">HTML</a></li>
34
+
{%-endif-%}
30
35
{%-ifjsCode%}<liclass="app-tabs__list-item"role="presentation"><aclass="app-tabs__tab nhsuk-link--no-visited-state"href="#js-default-{{ id }}"role="tab"id="tab_js-default-{{ id }}"aria-controls="js-default-{{ id }}">JavaScript</a></li>{%endif-%}
31
36
{%-iffigmaLink%}<liclass="app-tabs__list-item"role="presentation"><aclass="app-tabs__tab nhsuk-link--no-visited-state"href="#figma-default-{{ id }}"role="tab"id="tab_figma-default-{{ id }}"aria-controls="figma-default-{{ id }}">Figma</a></li>{%endif-%}
32
37
{%-ifvueLink%}<liclass="app-tabs__list-item"role="presentation"><aclass="app-tabs__tab nhsuk-link--no-visited-state"href="#vue-default-{{ id }}"role="tab"id="tab_vue-default-{{ id }}"aria-controls="vue-default-{{ id }}">Vue</a></li>{%endif-%}
33
38
</ul>
34
39
35
40
<divclass="app-tabs__panel app-tabs__panel--hidden"id="html-default-{{ id }}"role="tabpanel"aria-labelledby="tab_html-default-{{ id }}">
36
-
<buttonclass="app-copy__button app-u-hidden"data-module="app-copy"data-clipboard-target="#html-default-{{ id }}-code">Copy code</button>
41
+
<buttonclass="app-copy__button"data-module="app-copy"data-clipboard-target="#html-default-{{ id }}-code">Copy code</button>
37
42
<divid="html-default-{{ id }}-code">
38
43
{%-highlight"html"-%}
39
44
{{htmlCode | safe}}
@@ -42,23 +47,35 @@
42
47
</div>
43
48
44
49
<divclass="app-tabs__panel app-tabs__panel--hidden"id="nunjucks-default-{{ id }}"role="tabpanel"aria-labelledby="tab_nunjucks-default-{{ id }}">
45
-
<buttonclass="app-copy__button app-u-hidden"data-module="app-copy"data-clipboard-target="#nunjucks-default-{{ id }}-code">Copy code</button>
<p>Use options to customise the appearance, content and behaviour of a component when using a macro, for example, changing the text.</p>
60
+
<p>Some options are required for the macro to work; these are marked as "Required" in the option description.</p>
61
+
<p>If you're using Nunjucks macros in production with "html" options, or ones ending with "html", you must sanitise the HTML to protect against <ahref="https://developer.mozilla.org/en-US/docs/Glossary/Cross-site_scripting">cross-site scripting exploits</a>.</p>
0 commit comments