Skip to content

Commit 9504044

Browse files
Merge pull request #1303 from nhsuk/inset-text-legacy-path
Fix legacy Sass import path for inset text component
2 parents c0bbc8f + 2cde482 commit 9504044

File tree

5 files changed

+79
-3
lines changed

5 files changed

+79
-3
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# NHS.UK frontend Changelog
22

3+
## 9.5.2 - 14 May 2025
4+
5+
:wrench: **Fixes**
6+
7+
We've made fixes to NHS.UK frontend in the following pull requests:
8+
9+
- [#1301: Fix legacy Sass import path for inset text component](https://github.com/nhsuk/nhsuk-frontend/pull/1301)
10+
311
## 9.5.1 - 14 May 2025
412

513
:wrench: **Fixes**

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nhsuk-frontend",
3-
"version": "9.5.1",
3+
"version": "9.5.2",
44
"description": "NHS.UK frontend contains the code you need to start building user interfaces for NHS websites and services.",
55
"engines": {
66
"node": "^20.9.0 || ^22.11.0"
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
import { compileStringAsync } from 'sass-embedded'
2+
3+
describe('Components', () => {
4+
describe('importing using index file', () => {
5+
it('forwards all components', async () => {
6+
const sass = `
7+
@forward "components";
8+
`
9+
10+
const results = compileStringAsync(sass, {
11+
loadPaths: ['packages']
12+
})
13+
14+
await expect(results).resolves.not.toThrow()
15+
})
16+
})
17+
18+
describe('importing using legacy paths', () => {
19+
it('forwards all components', async () => {
20+
const sass = `
21+
@forward "components/action-link/action-link";
22+
@forward "components/back-link/back-link";
23+
@forward "components/breadcrumb/breadcrumb";
24+
@forward "components/button/button";
25+
@forward "components/card/card";
26+
@forward "components/contents-list/contents-list";
27+
@forward "components/date-input/date-input";
28+
@forward "components/details/details";
29+
@forward "components/do-dont-list/do-dont-list";
30+
@forward "components/error-message/error-message";
31+
@forward "components/error-summary/error-summary";
32+
@forward "components/fieldset/fieldset";
33+
@forward "components/footer/footer";
34+
@forward "components/header/header";
35+
@forward "components/header/header-organisation";
36+
@forward "components/header/header-service";
37+
@forward "components/header/header-transactional";
38+
@forward "components/header/header-white";
39+
@forward "components/hero/hero";
40+
@forward "components/hint/hint";
41+
@forward "components/images/images";
42+
@forward "components/input/input";
43+
@forward "components/inset-text/inset-text";
44+
@forward "components/label/label";
45+
@forward "components/pagination/pagination";
46+
@forward "components/panel/panel";
47+
@forward "components/checkboxes/checkboxes";
48+
@forward "components/radios/radios";
49+
@forward "components/select/select";
50+
@forward "components/skip-link/skip-link";
51+
@forward "components/summary-list/summary-list";
52+
@forward "components/tables/tables";
53+
@forward "components/tag/tag";
54+
@forward "components/task-list/task-list";
55+
@forward "components/textarea/textarea";
56+
@forward "components/warning-callout/warning-callout";
57+
@forward "components/character-count/character-count";
58+
@forward "components/tabs/tabs";
59+
`
60+
61+
const results = compileStringAsync(sass, {
62+
loadPaths: ['packages']
63+
})
64+
65+
await expect(results).resolves.not.toThrow()
66+
})
67+
})
68+
})

0 commit comments

Comments
 (0)