Skip to content

Commit

Permalink
Bump nhsuk-frontend version v9.2.0 (#241)
Browse files Browse the repository at this point in the history
Bump nhsuk frontend version
  • Loading branch information
davidhunter08 authored Feb 14, 2025
1 parent eecc363 commit 5d7a2b2
Show file tree
Hide file tree
Showing 17 changed files with 90 additions and 88 deletions.
3 changes: 2 additions & 1 deletion .eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ const nunjucksEnv = nunjucks.configure([
'docs/assets',

// NHS.UK frontend components
'node_modules/nhsuk-frontend/packages/components'
'node_modules/nhsuk-frontend/packages/components',
'node_modules/nhsuk-frontend/packages/macros'
])

export default function (eleventyConfig) {
Expand Down
91 changes: 48 additions & 43 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,48 +1,38 @@
# NHS App Frontend Changelog

## 0.1.0-alpha.0 (Prerelease) - 18 April 2024

:tada: **Initial release of the NHS App Frontend**
## `v3.0.0` - UNRELEASED

## `v1.0.0` release of the NHS App Frontend package.

A collection of HTML, CSS, Nunjucks templates and guidance for the NHS App. Built on top of the [nhsuk-frontend](https://github.com/nhsuk/nhsuk-frontend) styles.

### Components and styles
### Breaking changes

- Badge
- Bottom navigation (native)
- Card links
- Section heading
- Tag
- Timeline
- Top Navigation (native)
- Bumped `nhsuk-frontend` version to `v9.2.0` ([PR 241](https://github.com/nhsuk/nhsapp-frontend/pull/241)) - details are in the [nhsuk frontend release notes](https://github.com/nhsuk/nhsuk-frontend/releases)
- Bumped `nhsuk-frontend` peer dependency version to `v9.0.0`

## `v1.1.0`
### Components

Minor updates to guidance
- Updated [Badge](https://design-system.nhsapp.service.nhs.uk/components/badge/) - removing small blue variant

### Components and styles
## `v2.3.0`

- Summary list now supports a two column display on mobile
### Fixes

## `v1.2.0`
- Icons now use `rem` sizing to ensure consitency in different contexts

### Components and styles
### Components

- Button enhancements. Extending the `nhsuk-frontend` button styling to support default full width buttons on mobile.
- New [Seconday Button](https://design-system.nhsapp.service.nhs.uk/components/buttons/) styling added
- New [Confirmation Panel](https://design-system.nhsapp.service.nhs.uk/components/panel/) component

## `v2.0.1`
## `v2.2.0`

### Fixes

Create symlink to `docs/_includes` so that the docs can include anything in `src`

### Breaking changes
- Badge count now displaying correctly when value is 1
- Cards in combination with a section heading spacing now fixed
- Added missing card param to Nunjucks macro `linkAriaLabel`

Prefixed all Nunjucks macros with `nhsapp`.
### Styles

> ~~`card`~~ > `nhsappCard`
New icons added. [See full commit](https://github.com/nhsuk/nhsapp-frontend/commit/201556e91df539d9ec6dce4eda50a0f478ed3b05) for list of icons.

## `v2.1.0`

Expand All @@ -57,31 +47,46 @@ Card link with badge accessibility fix. Added option to provide `aria-hidden` to
- The card component now supports a footer section. The guidance for this will be coming very soon after this release
- The card component now supports a "read only" view. The chevron icon is hidden and the title is no longer a link

## `v2.2.0`
## `v2.0.1`

### Fixes

- Badge count now displaying correctly when value is 1
- Cards in combination with a section heading spacing now fixed
- Added missing card param to Nunjucks macro `linkAriaLabel`
Create symlink to `docs/_includes` so that the docs can include anything in `src`

### Styles
### Breaking changes

New icons added. [See full commit](https://github.com/nhsuk/nhsapp-frontend/commit/201556e91df539d9ec6dce4eda50a0f478ed3b05) for list of icons.
Prefixed all Nunjucks macros with `nhsapp`.

## `v2.3.0`
> ~~`card`~~ > `nhsappCard`
### Fixes
## `v1.2.0`

- Icons now use `rem` sizing to ensure consitency in different contexts
### Components and styles

### Components
- Button enhancements. Extending the `nhsuk-frontend` button styling to support default full width buttons on mobile.

- New [Seconday Button](https://design-system.nhsapp.service.nhs.uk/components/buttons/) styling added
- New [Confirmation Panel](https://design-system.nhsapp.service.nhs.uk/components/panel/) component
## `v1.1.0`

## `v2.4.0` - UNRELEASED
Minor updates to guidance

### Components
### Components and styles

- Updated [Badge](https://design-system.nhsapp.service.nhs.uk/components/badge/) - removing small blue variant
- Summary list now supports a two column display on mobile

## `v1.0.0` release of the NHS App Frontend package.

A collection of HTML, CSS, Nunjucks templates and guidance for the NHS App. Built on top of the [nhsuk-frontend](https://github.com/nhsuk/nhsuk-frontend) styles.

### Components and styles

- Badge
- Bottom navigation (native)
- Card links
- Section heading
- Tag
- Timeline
- Top Navigation (native)

## 0.1.0-alpha.0 (Prerelease) - 18 April 2024

:tada: **Initial release of the NHS App Frontend**
7 changes: 3 additions & 4 deletions docs/_includes/layouts/base.njk
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
{% from 'breadcrumb/macro.njk' import breadcrumb %}
{% from 'skip-link/macro.njk' import skipLink %}
{% from "icon/macro.njk" import nhsappIcon %}
{% from 'attributes.njk' import nhsukAttributes %}

<!DOCTYPE html>
<html lang="en" {% if htmlClasses %} class="{{ htmlClasses }}"{% endif %}>
Expand Down Expand Up @@ -76,12 +77,10 @@
}}
{% endblock %}

{% block breadcrumb %}
{% endblock %}

{% block container %}
<div class="nhsuk-width-container{% if containerClasses %} {{ containerClasses }}{% endif %}">
<main role="main" id="maincontent" class="nhsuk-main-wrapper{% if mainClasses %} {{ mainClasses }}{% endif %}">
{% block beforeContent %}{% endblock %}
<main role="main" id="maincontent" class="nhsuk-main-wrapper {% if mainClasses %} {{ mainClasses }}{% endif %}">
{% block main %}
{{ content | safe }}
{% endblock main %}
Expand Down
2 changes: 1 addition & 1 deletion docs/_includes/layouts/community.njk
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

{%- from "./partials/side-navigation.njk" import appSideNavigation %}

{% block breadcrumb %}
{% block beforeContent %}
{% if title === "Community" %}
{{ breadcrumb({
href: "/",
Expand Down
2 changes: 1 addition & 1 deletion docs/_includes/layouts/component.njk
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

{%- from "./partials/side-navigation.njk" import appSideNavigation %}

{% block breadcrumb %}
{% block beforeContent %}
{% if title === "Components" %}
{{ breadcrumb({
href: "/",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
{% block skiplink %}{% endblock %}

{% set htmlClasses = "app-html-background-color-grey-5" %}
{% set mainClasses = "nhsuk-main-wrapper--s" %}

{% block header %}
{% include "layouts/partials/header-native.njk" %}
Expand Down
2 changes: 0 additions & 2 deletions docs/_includes/layouts/example-full-page-web.njk
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
{% extends "./base.njk" %}

{% set mainClasses = "nhsuk-main-wrapper--s" %}

{% block header %}
{% include "layouts/partials/header-web.njk" %}
{% endblock %}
Expand Down
2 changes: 1 addition & 1 deletion docs/_includes/layouts/get-started.njk
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

{%- from "./partials/side-navigation.njk" import appSideNavigation %}

{% block breadcrumb %}
{% block beforeContent %}
{% if title === "Get started" %}
{{ breadcrumb({
href: "/",
Expand Down
2 changes: 1 addition & 1 deletion docs/_includes/layouts/pattern.njk
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

{%- from "./partials/side-navigation.njk" import appSideNavigation %}

{% block breadcrumb %}
{% block beforeContent %}
{% if title === "Patterns" %}
{{ breadcrumb({
href: "/",
Expand Down
2 changes: 1 addition & 1 deletion docs/_includes/layouts/plain.njk
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% extends "./base.njk" %}

{% block breadcrumb %}
{% block beforeContent %}
{{ breadcrumb({
href: "/",
text: "Home"
Expand Down
3 changes: 2 additions & 1 deletion docs/_includes/layouts/sidebar.njk
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

{% block container %}
<div class="nhsuk-width-container">
{% block beforeContent %}{% endblock %}
<div class="nhsuk-grid-row">
<div class="nhsuk-grid-column-one-quarter">
{% block sidebar_desktop %}
Expand All @@ -12,7 +13,7 @@
</div>

<div class="nhsuk-grid-column-three-quarters">
<main role="main" id="maincontent" class="nhsuk-main-wrapper app-content">
<main role="main" id="maincontent" class="nhsuk-main-wrapper nhsuk-main-wrapper--s app-content">
{% block main %}
{{ content | safe }}
{% endblock main %}
Expand Down
9 changes: 0 additions & 9 deletions docs/assets/css/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,6 @@ pre {
}
}

// Frontend button colour overrides
.nhsuk-button--reverse {
color: $color_nhsuk-black;

&:visited {
color: $color_nhsuk-black;
}
}

// Home page section
.app-section {
:last-child {
Expand Down
6 changes: 3 additions & 3 deletions docs/assets/css/components/_header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,24 @@
background-color: $app-brand-color;

.nhsuk-header__navigation-link {
margin-right: 32px;
padding-left: 0;
padding-right: 0;
}

.nhsuk-header__menu-toggle--visible {
padding-right: 30px;
padding-right: 24px;
}

.nhsuk-header__drop-down {
.nhsuk-header__navigation-link {
padding: 12px 16px;
margin-right: 0;
margin: 0;
}
}

.nhsuk-header__navigation-list {
@include mq($from: desktop) {
gap: 32px;
justify-content: flex-start;
}
}
Expand Down
9 changes: 7 additions & 2 deletions docs/assets/css/components/_side-navigation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@
@include nhsuk-font($size: 16);

display: block;
padding: nhsuk-spacing(2) 0 0;
padding: nhsuk-spacing(5) 0 0;
}

.app-side-navigation__title {
@include nhsuk-font($size: 19);

color: $color_nhsuk-grey-1;
font-weight: normal;
margin: 0;
Expand Down Expand Up @@ -88,7 +89,7 @@
}

.app-side-navigation--mobile {
padding-bottom: nhsuk-spacing(4);
padding: nhsuk-spacing(4) 0;

.app-side-navigation {
padding: 0 0 nhsuk-spacing(3);
Expand All @@ -102,6 +103,10 @@
padding-top: nhsuk-spacing(3);
}

.app-side-navigation__title {
font-weight: bold;
}

.app-side-navigation__item {
@include nhsuk-font(19);
}
Expand Down
29 changes: 16 additions & 13 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 5d7a2b2

Please sign in to comment.