diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 0c336d808..85aba52b9 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -12,7 +12,16 @@ jobs: - name: Install dependencies run: npm install - + + - name: Sonar analysis + uses: sonarsource/sonarcloud-github-action@master + with: + projectBaseDir: . + env: + GITHUB_TOKEN: ${{ secrets.TOKEN_GITHUB }} + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} + - name: Run linting run: npm run lint diff --git a/.prettierignore b/.prettierignore index 9b6142ef4..390d36ab9 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,5 +1,6 @@ node_modules/* dist/* +.cache/* tests/backstop/* .github/* coverage/* diff --git a/CHANGELOG.md b/CHANGELOG.md index 07f1ea996..f130c20aa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,131 @@ # NHS.UK frontend Changelog -## 7.0.1 - TBA +## 8.2.0 - 12 June 2024 + +:recycle: **Changes** + +- Align label bottom margins with fieldset legend bottom margins ([PR 946](https://github.com/nhsuk/nhsuk-frontend/pull/946)) + +:wrench: **Fixes** + +- Change example link to hash ([PR 962](https://github.com/nhsuk/nhsuk-frontend/pull/962)) +- Adjust nested list spacing ([PR 961](https://github.com/nhsuk/nhsuk-frontend/pull/961)) +- Fix header navigation item alignment ([PR 054](https://github.com/nhsuk/nhsuk-frontend/pull/954)) +- Fix bug with inset text component requiring uppercase `html` argument ([Issue 950](https://github.com/nhsuk/nhsuk-frontend/issues/950)) +- Remove unused CSS from icon card component ([PR 943](https://github.com/nhsuk/nhsuk-frontend/pull/943)) +- Remove unused CSS from breadcrumbs component ([PR 943](https://github.com/nhsuk/nhsuk-frontend/pull/943)) +- Add `aria-hidden` to responsive labels in responsive tables, to avoid screen readers repeating them ([PR 942](https://github.com/nhsuk/nhsuk-frontend/pull/942)) +- Add `opacity: 1` to header search placeholder, to increase colour contrast on Firefox ([PR 939](https://github.com/nhsuk/nhsuk-frontend/pull/939)) + +## 8.1.1 - 14 March 2024 + +:wrench: **Fixes** + +- Fix alignment of copyright footer +- Add missing/outdated backstop images +- Don't limit input heights to `40px`, to prevent vertical overflow + +## 8.1.0 - 11 January 2024 + +:wrench: **Fixes** + +- Updated header component unit tests ([PR 900](https://github.com/nhsuk/nhsuk-frontend/pull/900)). +- Fixed bug where the header didn't align with the main width container ([PR 902](https://github.com/nhsuk/nhsuk-frontend/pull/902)). This fixes [Issue 901](https://github.com/nhsuk/nhsuk-frontend/issues/901) +- Clicking the chevron image on a 'Primary Card (With Chevron)' card element now focuses the link ([PR 905](https://github.com/nhsuk/nhsuk-frontend/pull/905)). +- Added font licensing guidance to the relevant package READMEs and updated the copyright guidance to include NHS England ([PR 915](https://github.com/nhsuk/nhsuk-frontend/pull/915)). + +:new: **New features** + +- Add and export new `initAll` method in `nhsuk.js`, and pass document by default, but allowing smaller DOM scopes to be passed. This allows new nhsuk-frontend JS components to be initialised after page load, such as in new pieces of DOM added by JavaScript. + - This fixes [issue 906](https://github.com/nhsuk/nhsuk-frontend/issues/906) where button elements added _after_ the page has loaded would not benefit from the button component's JS behaviours (double click prevention and space bar activation for links). ([PR 907](https://github.com/nhsuk/nhsuk-frontend/pull/907)). + +## 8.0.2 - 19 October 2023 + +:wrench: **Fixes** + +- Resolves the bug of the drop down menu covering the main content of the page ([PR 898](https://github.com/nhsuk/nhsuk-frontend/pull/898)). + +## 8.0.1 - 02 October 2023 + +:wrench: **Fixes** + +- Updated design examples for suffix and prefix, and added backstop regression images ([PR 826](https://github.com/nhsuk/nhsuk-frontend/pull/826)). +- Fix focus padding for the search input ([PR 896](https://github.com/nhsuk/nhsuk-frontend/pull/896)). +- Remove card component Javascript from documentation ([PR 891](https://github.com/nhsuk/nhsuk-frontend/pull/891)). + +## 8.0.0 - 28 September 2023 + +:boom: **Breaking changes** + +- Updated header and footer to use the new styles and functionality to match the live nhs.uk site ([PR 881](https://github.com/nhsuk/nhsuk-frontend/pull/881)) + +As well as changes to the styles, this added an example of a footer with it's links in columns, and removed the redundant example of "Header transactional". This also fixes the issue ([Issue 805](https://github.com/nhsuk/nhsuk-frontend/issues/805)). + +In the header variants, the menu toggle button has been replaced with a dropdown menu, that becomes visible when the screen width is below 768px (tablet width). The search toggle has been removed, and instead the search input automatically adjusts according to the screen width. + +Instead of having this: + +``` +// menu toggle + + + + Close menu + +``` + +You will now only need this: + +``` + + +
You can report any suspected side effect to the UK safety scheme.
" + "html": "You can report any suspected side effect to the UK safety scheme.
" }) }}Please see our contributing guidelines on how to set up the project locally and contribute changes to NHS.UK frontend.
NHS.UK frontend is actively maintained by a team at NHS Digital, you can email us or get in touch on the NHS digital service manual Slack workspace. - +
NHS.UK frontend is actively maintained by a team at NHS England, you can email us or get in touch on the NHS digital service manual Slack workspace.
+A quick guide for people who have care and support needs and their carers
+Services the NHS provides if you need urgent or emergency medical help
+{{ params.description | safe }}
{%- else %} {%- endif %} + {% if params.primary %} + + {% endif %}