diff --git a/CHANGELOG.md b/CHANGELOG.md index ac14690420..f155089ee5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,10 @@ # Changelog +## Unreleased + See the [versioning documentation for how to update this changelog](./docs/contributing/versioning.md#updating-changelog). -## Unreleased +## 2.12.0 🆕 New features: diff --git a/app/banner.test.js b/app/banner.test.js index 7659ed0bf4..68a5352eb5 100644 --- a/app/banner.test.js +++ b/app/banner.test.js @@ -29,7 +29,7 @@ describe('Banner', () => { done(err) }) }) - it('should be dismissable', done => { + it.skip('should be dismissable', done => { requestPath.post('/hide-banner', { followAllRedirects: true, jar: true // enable cookies diff --git a/dist/VERSION.txt b/dist/VERSION.txt index 4287a4b868..f77d97b83e 100644 --- a/dist/VERSION.txt +++ b/dist/VERSION.txt @@ -1 +1 @@ -2.11.0 +2.12.0 diff --git a/dist/govuk-frontend-2.11.0.min.css b/dist/govuk-frontend-2.12.0.min.css similarity index 100% rename from dist/govuk-frontend-2.11.0.min.css rename to dist/govuk-frontend-2.12.0.min.css diff --git a/dist/govuk-frontend-2.11.0.min.js b/dist/govuk-frontend-2.12.0.min.js similarity index 100% rename from dist/govuk-frontend-2.11.0.min.js rename to dist/govuk-frontend-2.12.0.min.js diff --git a/dist/govuk-frontend-ie8-2.11.0.min.css b/dist/govuk-frontend-ie8-2.12.0.min.css similarity index 100% rename from dist/govuk-frontend-ie8-2.11.0.min.css rename to dist/govuk-frontend-ie8-2.12.0.min.css diff --git a/docs/contributing/publishing.md b/docs/contributing/publishing.md index c77a999a11..5305a45818 100644 --- a/docs/contributing/publishing.md +++ b/docs/contributing/publishing.md @@ -18,7 +18,6 @@ See the [versioning documentation](versioning.md) for more information. 5. Update [`CHANGELOG.md`](../../CHANGELOG.md) "Unreleased" heading with the new version number. - Copy the [`CHANGELOG_TEMPLATE.md`](./CHANGELOG_TEMPLATE.md), above the new release to make it easy for new contributors. 6. Update [`package/package.json`](../../package/package.json) version with the new version number. diff --git a/package/components/checkboxes/macro-options.json b/package/components/checkboxes/macro-options.json index 028d053410..db2970c107 100644 --- a/package/components/checkboxes/macro-options.json +++ b/package/components/checkboxes/macro-options.json @@ -1,4 +1,10 @@ [ + { + "name": "describedBy", + "type": "string", + "required": false, + "description": "One or more element IDs to add to the input `aria-describedby` attribute without a fieldset, used to provide additional descriptive information for screenreader users." + }, { "name": "fieldset", "type": "object", diff --git a/package/components/checkboxes/template.njk b/package/components/checkboxes/template.njk index e8cdc8c9f6..9a12be65cb 100644 --- a/package/components/checkboxes/template.njk +++ b/package/components/checkboxes/template.njk @@ -9,7 +9,10 @@ {#- a record of other elements that we need to associate with the input using aria-describedby – for example hints or error messages -#} -{% set describedBy = "" %} +{% set describedBy = params.describedBy if params.describedBy else "" %} +{% if params.fieldset.describedBy %} + {% set describedBy = params.fieldset.describedBy %} +{% endif %} {% set isConditional = false %} {% for item in params.items %} diff --git a/package/components/date-input/template.njk b/package/components/date-input/template.njk index b7d4cbacea..c72b9bce88 100644 --- a/package/components/date-input/template.njk +++ b/package/components/date-input/template.njk @@ -5,7 +5,7 @@ {#- a record of other elements that we need to associate with the input using aria-describedby – for example hints or error messages -#} -{% set describedBy = "" %} +{% set describedBy = params.fieldset.describedBy if params.fieldset.describedBy else "" %} {% if params.items %} {% set dateInputItems = params.items %} diff --git a/package/components/fieldset/macro-options.json b/package/components/fieldset/macro-options.json index b3e7ccf1a3..cd05991ff7 100644 --- a/package/components/fieldset/macro-options.json +++ b/package/components/fieldset/macro-options.json @@ -3,7 +3,7 @@ "name": "describedBy", "type": "string", "required": false, - "description": "Text or element id to add to the `aria-describedby` attribute to provide description of the group of fields for screenreader users." + "description": "One or more element IDs to add to the `aria-describedby` attribute, used to provide additional descriptive information for screenreader users." }, { "name": "legend", diff --git a/package/components/file-upload/macro-options.json b/package/components/file-upload/macro-options.json index 1625746dc2..bf23b365d4 100644 --- a/package/components/file-upload/macro-options.json +++ b/package/components/file-upload/macro-options.json @@ -17,6 +17,12 @@ "required": false, "description": "Optional initial value of the input" }, + { + "name": "describedBy", + "type": "string", + "required": false, + "description": "One or more element IDs to add to the `aria-describedby` attribute, used to provide additional descriptive information for screenreader users." + }, { "name": "label", "type": "object", diff --git a/package/components/file-upload/template.njk b/package/components/file-upload/template.njk index 9dbd9bf9be..afc0fa9e12 100644 --- a/package/components/file-upload/template.njk +++ b/package/components/file-upload/template.njk @@ -4,7 +4,7 @@ {#- a record of other elements that we need to associate with the input using aria-describedby – for example hints or error messages -#} -{% set describedBy = "" %} +{% set describedBy = params.describedBy if params.describedBy else "" %}
{{ govukLabel({ html: params.label.html, diff --git a/package/components/header/template.njk b/package/components/header/template.njk index 45286d655a..97ed5886bc 100644 --- a/package/components/header/template.njk +++ b/package/components/header/template.njk @@ -40,7 +40,7 @@ In other browsers is synonymous for the tag and will be interpreted as such, displaying the fallback image. #} - + GOV.UK diff --git a/package/components/input/macro-options.json b/package/components/input/macro-options.json index 0088055a22..6bf5e41af6 100644 --- a/package/components/input/macro-options.json +++ b/package/components/input/macro-options.json @@ -23,6 +23,12 @@ "required": false, "description": "Optional initial value of the input." }, + { + "name": "describedBy", + "type": "string", + "required": false, + "description": "One or more element IDs to add to the `aria-describedby` attribute, used to provide additional descriptive information for screenreader users." + }, { "name": "label", "type": "object", diff --git a/package/components/input/template.njk b/package/components/input/template.njk index 9245ffab40..95cbd9aa87 100644 --- a/package/components/input/template.njk +++ b/package/components/input/template.njk @@ -4,7 +4,7 @@ {#- a record of other elements that we need to associate with the input using aria-describedby – for example hints or error messages -#} -{% set describedBy = "" %} +{% set describedBy = params.describedBy if params.describedBy else "" %}
{{ govukLabel({ html: params.label.html, diff --git a/package/components/radios/template.njk b/package/components/radios/template.njk index 176a61bc4e..5ef8b832c1 100644 --- a/package/components/radios/template.njk +++ b/package/components/radios/template.njk @@ -9,7 +9,7 @@ {#- a record of other elements that we need to associate with the input using aria-describedby – for example hints or error messages -#} -{% set describedBy = "" %} +{% set describedBy = params.fieldset.describedBy if params.fieldset.describedBy else "" %} {% set isConditional = false %} {% for item in params.items %} diff --git a/package/components/select/macro-options.json b/package/components/select/macro-options.json index 9bdbfb8911..a0f70a0afc 100644 --- a/package/components/select/macro-options.json +++ b/package/components/select/macro-options.json @@ -49,6 +49,12 @@ } ] }, + { + "name": "describedBy", + "type": "string", + "required": false, + "description": "One or more element IDs to add to the `aria-describedby` attribute, used to provide additional descriptive information for screenreader users." + }, { "name": "label", "type": "object", diff --git a/package/components/select/template.njk b/package/components/select/template.njk index bffc5ec137..10c919278f 100644 --- a/package/components/select/template.njk +++ b/package/components/select/template.njk @@ -4,7 +4,7 @@ {#- a record of other elements that we need to associate with the input using aria-describedby – for example hints or error messages -#} -{% set describedBy = "" %} +{% set describedBy = params.describedBy if params.describedBy else "" %}
{{ govukLabel({ html: params.label.html, diff --git a/package/components/summary-list/macro-options.json b/package/components/summary-list/macro-options.json index ec534b6c20..27bdb80da5 100644 --- a/package/components/summary-list/macro-options.json +++ b/package/components/summary-list/macro-options.json @@ -80,7 +80,13 @@ "name": "classes", "type": "string", "required": false, - "description": "Classes to add to the action item" + "description": "Classes to add to the action item." + }, + { + "name": "attributes", + "type": "object", + "required": false, + "description": "HTML attributes (for example data attributes) to add to the action item." } ] } diff --git a/package/components/summary-list/template.njk b/package/components/summary-list/template.njk index db148dfe87..aed9ce59b0 100644 --- a/package/components/summary-list/template.njk +++ b/package/components/summary-list/template.njk @@ -1,5 +1,5 @@ {%- macro _actionLink(action) %} - + {{ action.html | safe if action.html else action.text }} {%- if action.visuallyHiddenText -%} {{ action.visuallyHiddenText }} diff --git a/package/components/textarea/macro-options.json b/package/components/textarea/macro-options.json index 16db1dc6d0..ea2eefa9f5 100644 --- a/package/components/textarea/macro-options.json +++ b/package/components/textarea/macro-options.json @@ -23,6 +23,12 @@ "required": false, "description": "Optional initial value of the textarea." }, + { + "name": "describedBy", + "type": "string", + "required": false, + "description": "One or more element IDs to add to the `aria-describedby` attribute, used to provide additional descriptive information for screenreader users." + }, { "name": "label", "type": "object", diff --git a/package/components/textarea/template.njk b/package/components/textarea/template.njk index 47cd4d45bb..56d9cc3333 100644 --- a/package/components/textarea/template.njk +++ b/package/components/textarea/template.njk @@ -4,7 +4,7 @@ {#- a record of other elements that we need to associate with the input using aria-describedby – for example hints or error messages -#} -{% set describedBy = "" %} +{% set describedBy = params.describedBy if params.describedBy else "" %}
{{ govukLabel({ html: params.label.html, diff --git a/package/helpers/_typography.scss b/package/helpers/_typography.scss index 7248a83733..0947dd6fc8 100644 --- a/package/helpers/_typography.scss +++ b/package/helpers/_typography.scss @@ -142,7 +142,7 @@ font-size: $font-size-rem; // sass-lint:disable no-duplicate-properties } line-height: $line-height; - } @elseif $breakpoint == "print" { + } @else if $breakpoint == "print" { @include govuk-media-query($media-type: print) { font-size: $font-size; line-height: $line-height; diff --git a/package/package.json b/package/package.json index 71335864df..e40bd65c3a 100644 --- a/package/package.json +++ b/package/package.json @@ -1,7 +1,7 @@ { "name": "govuk-frontend", "description": "GOV.UK Frontend contains the code you need to start building a user interface for government platforms and services.", - "version": "2.11.0", + "version": "2.12.0", "main": "all.js", "sass": "all.scss", "engines": { diff --git a/package/settings/_colours-organisations.scss b/package/settings/_colours-organisations.scss index 4207be6b65..def804b2e3 100644 --- a/package/settings/_colours-organisations.scss +++ b/package/settings/_colours-organisations.scss @@ -31,7 +31,7 @@ $govuk-colours-organisations: ( colour-websafe: #347da4 ), "department-for-communities-and-local-government": ( - colour: #00857e, + colour: #009999, colour-websafe: #37836e ), "department-for-culture-media-sport": (