diff --git a/__snapshots__/layout/_template.spec.js.snap b/__snapshots__/layout/_template.spec.js.snap
index e7cbd1e4fe..5fd65617dc 100644
--- a/__snapshots__/layout/_template.spec.js.snap
+++ b/__snapshots__/layout/_template.spec.js.snap
@@ -1136,7 +1136,7 @@ exports[`base page template matches the full configuration snapshot 1`] = `
-
+
Design system
diff --git a/package.json b/package.json
index f850a8adc6..192ff856b3 100644
--- a/package.json
+++ b/package.json
@@ -139,6 +139,5 @@
},
"resolutions": {
"minimist": "^1.2.5"
- },
- "dependencies": {}
+ }
}
diff --git a/src/components/document-list/example-document-list-search-result-featured.njk b/src/components/document-list/example-document-list-search-result-featured.njk
index 51c9d13951..32a02a2ea6 100644
--- a/src/components/document-list/example-document-list-search-result-featured.njk
+++ b/src/components/document-list/example-document-list-search-result-featured.njk
@@ -12,7 +12,7 @@
"text": 'Topic'
}
},
- "description": 'Figures on crime levels and trends for England and Wales based primarily on two sets of statistics: the Crime Survey for England and Wales (CSEW) and police recorded crime data.
+ "description": 'Figures on crime levels and trends for England and Wales based primarily on two sets of statistics: the Crime Survey for England and Wales (CSEW) and police recorded crime data.
View all datasets or publications related to Crime and justice
'
}
]
diff --git a/src/components/document-list/example-document-list-search-results.njk b/src/components/document-list/example-document-list-search-results.njk
index c2a3a0e1f3..9b2c321755 100644
--- a/src/components/document-list/example-document-list-search-results.njk
+++ b/src/components/document-list/example-document-list-search-results.njk
@@ -12,7 +12,7 @@
"text": 'Topic'
}
},
- "description": 'Figures on crime levels and trends for England and Wales based primarily on two sets of statistics: the Crime Survey for England and Wales (CSEW) and police recorded crime data.
+ "description": 'Figures on crime levels and trends for England and Wales based primarily on two sets of statistics: the Crime Survey for England and Wales (CSEW) and police recorded crime data.
View all datasets or publications related to Crime and justice
'
},
{
@@ -29,7 +29,7 @@
"short": '18 February 2021'
}
},
- "description": 'Domestic abuse and sexual assault outcomes for disabled people in England and Wales aged 16 to 59 years, with analysis by age, sex, impairment type, impairment severity, country and region using the Crime Survey for England and Wales (CSEW) data.
'
+ "description": 'Domestic abuse and sexual assault outcomes for disabled people in England and Wales aged 16 to 59 years, with analysis by age, sex, impairment type, impairment severity, country and region using the Crime Survey for England and Wales (CSEW) data.
'
},
{
"url": '#0',
@@ -45,7 +45,7 @@
"short": '2 December 2019'
}
},
- "description": 'An overview of published data on disability and crime in the UK and analysis of the experience of domestic abuse and sexual assault for disabled adults aged 16 to 59 years in England and Wales. Analysis by age, sex and impairment type.
'
+ "description": 'An overview of published data on disability and crime in the UK and analysis of the experience of domestic abuse and sexual assault for disabled adults aged 16 to 59 years in England and Wales. Analysis by age, sex and impairment type.
'
},
{
"url": '#0',
diff --git a/src/components/fieldset/_fieldset.scss b/src/components/fieldset/_fieldset.scss
index d0b764f913..8a340a5984 100644
--- a/src/components/fieldset/_fieldset.scss
+++ b/src/components/fieldset/_fieldset.scss
@@ -10,7 +10,7 @@
margin: 0;
padding: 0 0 1.5rem;
- em,
+ strong,
.ons-highlight {
@extend .ons-highlight;
}
diff --git a/src/components/header/example-header-external-with-sub-navigation.njk b/src/components/header/example-header-external-with-sub-navigation.njk
index 464ddaea50..29333db773 100644
--- a/src/components/header/example-header-external-with-sub-navigation.njk
+++ b/src/components/header/example-header-external-with-sub-navigation.njk
@@ -37,7 +37,7 @@
],
"toggleNavigationButton": {
"text": 'Menu',
- "ariaLabel": 'Toggle main menu'
+ "ariaLabel": 'Toggle menu'
},
"subNavigation": {
"id": 'sub-nav',
diff --git a/src/components/navigation/_macro.njk b/src/components/navigation/_macro.njk
index 356d8d805e..3d94b1ccca 100644
--- a/src/components/navigation/_macro.njk
+++ b/src/components/navigation/_macro.njk
@@ -68,7 +68,7 @@
"type": "button",
"variants": ["mobile", "dropdown"],
"attributes": {
- "aria-label": "Toggle section navigation",
+ "aria-label": "Toggle " + params.navigation.currentPageTitle + " menu" if params.navigation.currentPageTitle else "Toggle section menu",
"aria-controls": params.navigation.subNavigation.id,
"aria-expanded": "false"
}
diff --git a/src/components/navigation/_macro.spec.js b/src/components/navigation/_macro.spec.js
index e9ba7688be..a36b08abdb 100644
--- a/src/components/navigation/_macro.spec.js
+++ b/src/components/navigation/_macro.spec.js
@@ -10,7 +10,7 @@ const PARAMS = {
id: 'main-nav',
ariaLabel: 'Main menu',
currentPath: ['#1', '/sub-item-1', '/sub-item-2/child-item-1'],
- currentPageTitle: 'Main nav item 2',
+ currentPageTitle: 'main nav item 2',
itemsList: [
{
title: 'Main nav item 1',
@@ -210,12 +210,12 @@ describe('macro: navigation', () => {
faker.renderComponent('navigation', { navigation: PARAMS });
expect(buttonSpy.occurrences).toContainEqual({
- text: 'Main nav item 2',
+ text: 'main nav item 2',
classes: 'ons-u-d-no ons-js-sub-navigation-button',
variants: ['mobile', 'dropdown'],
type: 'button',
attributes: {
- 'aria-label': 'Toggle section navigation',
+ 'aria-label': 'Toggle main nav item 2 menu',
'aria-controls': 'sub-nav',
'aria-expanded': 'false',
},
diff --git a/src/components/question/example-question-interviewer-note.njk b/src/components/question/example-question-interviewer-note.njk
index bb0c1f650f..0b49d324e9 100644
--- a/src/components/question/example-question-interviewer-note.njk
+++ b/src/components/question/example-question-interviewer-note.njk
@@ -25,7 +25,7 @@ layout: ~
{% block main %}
{% call onsQuestion({
"title": "Interviewer note: Who to interview",
- "instruction": "Only interview a person who was usually living at the property on Sunday 21 March 2021 .
If none of those house members are available, you must save and sign out and return to the address to interview one of them at a later date.
",
+ "instruction": "Only interview a person who was usually living at the property on Sunday 21 March 2021 .
If none of those house members are available, you must save and sign out and return to the address to interview one of them at a later date.
",
"submitButton": {
"variants": "timer",
"text": "Continue"
diff --git a/src/components/relationships/_macro.spec.js b/src/components/relationships/_macro.spec.js
index 5af17e765d..d86b296893 100644
--- a/src/components/relationships/_macro.spec.js
+++ b/src/components/relationships/_macro.spec.js
@@ -6,7 +6,7 @@ import axe from '../../tests/helpers/axe';
import { renderComponent, templateFaker } from '../../tests/helpers/rendering';
const EXAMPLE_RELATIONSHIPS = {
- playback: "Amanda Bloggs is Joe Bloggs' … ",
+ playback: "Amanda Bloggs is Joe Bloggs' … ",
name: 'relationship',
dontWrap: true,
legendIsQuestionTitle: true,
@@ -18,8 +18,8 @@ const EXAMPLE_RELATIONSHIPS = {
text: 'Grandparent',
},
attributes: {
- 'data-title': 'Thinking of Joe Bloggs, Amanda Bloggs is their grandparents ',
- 'data-playback': "Amanda Bloggs is Joe Bloggs' grandparents ",
+ 'data-title': 'Thinking of Joe Bloggs, Amanda Bloggs is their grandparents ',
+ 'data-playback': "Amanda Bloggs is Joe Bloggs' grandparents ",
},
},
{
@@ -29,8 +29,8 @@ const EXAMPLE_RELATIONSHIPS = {
text: 'Other relation',
},
attributes: {
- 'data-title': 'Thinking of Joe Bloggs, Amanda Bloggs is their other relation ',
- 'data-playback': "Amanda Bloggs is Joe Bloggs' other relation ",
+ 'data-title': 'Thinking of Joe Bloggs, Amanda Bloggs is their other relation ',
+ 'data-playback': "Amanda Bloggs is Joe Bloggs' other relation ",
},
},
{
@@ -41,8 +41,8 @@ const EXAMPLE_RELATIONSHIPS = {
description: 'Including foster child',
},
attributes: {
- 'data-title': 'Thinking of Joe Bloggs, Amanda Bloggs is unrelated to Joe Bloggs',
- 'data-playback': 'Amanda Bloggs is unrelated to Joe Bloggs',
+ 'data-title': 'Thinking of Joe Bloggs, Amanda Bloggs is unrelated to Joe Bloggs',
+ 'data-playback': 'Amanda Bloggs is unrelated to Joe Bloggs',
},
},
],
@@ -82,10 +82,8 @@ describe('macro: relationships', () => {
it('has the provided `playback` text', () => {
const $ = cheerio.load(renderComponent('relationships', EXAMPLE_RELATIONSHIPS));
- const playbackContent = $('.ons-relationships__playback')
- .html()
- .trim();
- expect(playbackContent).toBe("Amanda Bloggs is Joe Bloggs' … ");
+ const playbackContent = $('.ons-relationships__playback').html().trim();
+ expect(playbackContent).toBe("Amanda Bloggs is Joe Bloggs' … ");
});
it('has playback paragraph hidden initially', async () => {
diff --git a/src/components/relationships/example-relationships-error.njk b/src/components/relationships/example-relationships-error.njk
index 510997d1c9..36b40918bd 100644
--- a/src/components/relationships/example-relationships-error.njk
+++ b/src/components/relationships/example-relationships-error.njk
@@ -45,7 +45,7 @@ layout: ~
}}
{% endcall %}
{% call onsQuestion({
- "title": "Thinking of Joe Bloggs, Amanda Bloggs is their … ",
+ "title": "Thinking of Joe Bloggs, Amanda Bloggs is their … ",
"description": "Complete the sentence by selecting the appropriate relationship
",
"readDescriptionFirst": true,
"legendIsQuestionTitle": true,
@@ -53,7 +53,7 @@ layout: ~
"submitButton": true
}) %}
{{ onsRelationships({
- "playback": "Amanda Bloggs is Joe Bloggs' … ",
+ "playback": "Amanda Bloggs is Joe Bloggs' … ",
"name": "relationship",
"dontWrap": true,
"error": {
@@ -68,8 +68,8 @@ layout: ~
"text": "Husband or wife"
},
"attributes": {
- "data-title": "Thinking of Joe Bloggs, Amanda Bloggs is their husband or wife ",
- "data-playback": "Amanda Bloggs is Joe Bloggs' husband or wife "
+ "data-title": "Thinking of Joe Bloggs, Amanda Bloggs is their husband or wife ",
+ "data-playback": "Amanda Bloggs is Joe Bloggs' husband or wife "
}
},
{
@@ -79,8 +79,8 @@ layout: ~
"text": "Legally registered civil partner"
},
"attributes": {
- "data-title": "Thinking of Joe Bloggs, Amanda Bloggs is their legally registered civil partner ",
- "data-playback": "Amanda Bloggs is Joe Bloggs' legally registered civil partner "
+ "data-title": "Thinking of Joe Bloggs, Amanda Bloggs is their legally registered civil partner ",
+ "data-playback": "Amanda Bloggs is Joe Bloggs' legally registered civil partner "
}
},
{
@@ -90,8 +90,8 @@ layout: ~
"text": "Partner"
},
"attributes": {
- "data-title": "Thinking of Joe Bloggs, Amanda Bloggs is their partner ",
- "data-playback": "Amanda Bloggs is Joe Bloggs' partner "
+ "data-title": "Thinking of Joe Bloggs, Amanda Bloggs is their partner ",
+ "data-playback": "Amanda Bloggs is Joe Bloggs' partner "
}
},
{
@@ -101,8 +101,8 @@ layout: ~
"text": "Son or daughter"
},
"attributes": {
- "data-title": "Thinking of Joe Bloggs, Amanda Bloggs is their son or daughter ",
- "data-playback": "Amanda Bloggs is Joe Bloggs' son or daughter "
+ "data-title": "Thinking of Joe Bloggs, Amanda Bloggs is their son or daughter ",
+ "data-playback": "Amanda Bloggs is Joe Bloggs' son or daughter "
}
},
{
@@ -112,8 +112,8 @@ layout: ~
"text": "Stepchild"
},
"attributes": {
- "data-title": "Thinking of Joe Bloggs, Amanda Bloggs is their stepchild ",
- "data-playback": "Amanda Bloggs is Joe Bloggs' stepchild "
+ "data-title": "Thinking of Joe Bloggs, Amanda Bloggs is their stepchild ",
+ "data-playback": "Amanda Bloggs is Joe Bloggs' stepchild "
}
},
{
@@ -123,8 +123,8 @@ layout: ~
"text": "Brother or sister"
},
"attributes": {
- "data-title": "Thinking of Joe Bloggs, Amanda Bloggs is their brother or sister ",
- "data-playback": "Amanda Bloggs is Joe Bloggs' brother or sister "
+ "data-title": "Thinking of Joe Bloggs, Amanda Bloggs is their brother or sister ",
+ "data-playback": "Amanda Bloggs is Joe Bloggs' brother or sister "
}
},
{
@@ -134,8 +134,8 @@ layout: ~
"text": "Stepbrother or stepsister"
},
"attributes": {
- "data-title": "Thinking of Joe Bloggs, Amanda Bloggs is their stepbrother or sister ",
- "data-playback": "Amanda Bloggs is Joe Bloggs' stepbrother or sister "
+ "data-title": "Thinking of Joe Bloggs, Amanda Bloggs is their stepbrother or sister ",
+ "data-playback": "Amanda Bloggs is Joe Bloggs' stepbrother or sister "
}
},
{
@@ -145,8 +145,8 @@ layout: ~
"text": "Mother or father"
},
"attributes": {
- "data-title": "Thinking of Joe Bloggs, Amanda Bloggs is their mother or father ",
- "data-playback": "Amanda Bloggs is Joe Bloggs' mother or father "
+ "data-title": "Thinking of Joe Bloggs, Amanda Bloggs is their mother or father ",
+ "data-playback": "Amanda Bloggs is Joe Bloggs' mother or father "
}
},
{
@@ -156,8 +156,8 @@ layout: ~
"text": "Stepmother or stepfather"
},
"attributes": {
- "data-title": "Thinking of Joe Bloggs, Amanda Bloggs is their stepmother or stepfather ",
- "data-playback": "Amanda Bloggs is Joe Bloggs' stepmother or stepfather "
+ "data-title": "Thinking of Joe Bloggs, Amanda Bloggs is their stepmother or stepfather ",
+ "data-playback": "Amanda Bloggs is Joe Bloggs' stepmother or stepfather "
}
},
{
@@ -167,8 +167,8 @@ layout: ~
"text": "Grandchild"
},
"attributes": {
- "data-title": "Thinking of Joe Bloggs, Amanda Bloggs is their grandchild ",
- "data-playback": "Amanda Bloggs is Joe Bloggs' grandchild "
+ "data-title": "Thinking of Joe Bloggs, Amanda Bloggs is their grandchild ",
+ "data-playback": "Amanda Bloggs is Joe Bloggs' grandchild "
}
},
{
@@ -178,8 +178,8 @@ layout: ~
"text": "Grandparent"
},
"attributes": {
- "data-title": "Thinking of Joe Bloggs, Amanda Bloggs is their grandparents ",
- "data-playback": "Amanda Bloggs is Joe Bloggs' grandparents "
+ "data-title": "Thinking of Joe Bloggs, Amanda Bloggs is their grandparents ",
+ "data-playback": "Amanda Bloggs is Joe Bloggs' grandparents "
}
},
{
@@ -189,8 +189,8 @@ layout: ~
"text": "Other relation"
},
"attributes": {
- "data-title": "Thinking of Joe Bloggs, Amanda Bloggs is their other relation ",
- "data-playback": "Amanda Bloggs is Joe Bloggs' other relation "
+ "data-title": "Thinking of Joe Bloggs, Amanda Bloggs is their other relation ",
+ "data-playback": "Amanda Bloggs is Joe Bloggs' other relation "
}
},
{
@@ -201,8 +201,8 @@ layout: ~
"description": "Including foster child"
},
"attributes": {
- "data-title": "Thinking of Joe Bloggs, Amanda Bloggs is unrelated to Joe Bloggs",
- "data-playback": "Amanda Bloggs is unrelated to Joe Bloggs"
+ "data-title": "Thinking of Joe Bloggs, Amanda Bloggs is unrelated to Joe Bloggs",
+ "data-playback": "Amanda Bloggs is unrelated to Joe Bloggs"
}
}
]
diff --git a/src/components/relationships/example-relationships-you.njk b/src/components/relationships/example-relationships-you.njk
index e85e3a07b8..99b9489d08 100644
--- a/src/components/relationships/example-relationships-you.njk
+++ b/src/components/relationships/example-relationships-you.njk
@@ -23,7 +23,7 @@ layout: ~
{% block main %}
{% call onsQuestion({
- "title": "Joe Bloggs is your … ",
+ "title": "Joe Bloggs is your … ",
"description": "Complete the sentence by selecting the appropriate relationship
",
"readDescriptionFirst": true,
"legendIsQuestionTitle": true,
@@ -31,9 +31,9 @@ layout: ~
"submitButton": true
}) %}
{{ onsRelationships({
- "legend": "Joe Bloggs is your … ",
+ "legend": "Joe Bloggs is your … ",
"legendClasses": "ons-u-vh",
- "playback": "Joe Bloggs is your … ",
+ "playback": "Joe Bloggs is your … ",
"name": "relationship",
"dontWrap": true,
"radios": [
@@ -44,8 +44,8 @@ layout: ~
"text": "Husband or wife"
},
"attributes": {
- "data-title": "Joe Bloggs is your husband or wife ",
- "data-playback": "Joe Bloggs is your husband or wife "
+ "data-title": "Joe Bloggs is your husband or wife ",
+ "data-playback": "Joe Bloggs is your husband or wife "
}
},
{
@@ -55,8 +55,8 @@ layout: ~
"text": "Legally registered civil partner"
},
"attributes": {
- "data-title": "Joe Bloggs is your legally registered civil partner ",
- "data-playback": "Joe Bloggs is your legally registered civil partner "
+ "data-title": "Joe Bloggs is your legally registered civil partner ",
+ "data-playback": "Joe Bloggs is your legally registered civil partner "
}
},
{
@@ -66,8 +66,8 @@ layout: ~
"text": "Partner"
},
"attributes": {
- "data-title": "Joe Bloggs is your partner ",
- "data-playback": "Joe Bloggs is your partner "
+ "data-title": "Joe Bloggs is your partner ",
+ "data-playback": "Joe Bloggs is your partner "
}
},
{
@@ -77,8 +77,8 @@ layout: ~
"text": "Son or daughter"
},
"attributes": {
- "data-title": "Joe Bloggs is your son or daughter ",
- "data-playback": "Joe Bloggs is your son or daughter "
+ "data-title": "Joe Bloggs is your son or daughter ",
+ "data-playback": "Joe Bloggs is your son or daughter "
}
},
{
@@ -88,8 +88,8 @@ layout: ~
"text": "Stepchild"
},
"attributes": {
- "data-title": "Joe Bloggs is your stepchild ",
- "data-playback": "Joe Bloggs is your stepchild "
+ "data-title": "Joe Bloggs is your stepchild ",
+ "data-playback": "Joe Bloggs is your stepchild "
}
},
{
@@ -99,8 +99,8 @@ layout: ~
"text": "Brother or sister"
},
"attributes": {
- "data-title": "Joe Bloggs is your brother or sister ",
- "data-playback": "Joe Bloggs is your brother or sister "
+ "data-title": "Joe Bloggs is your brother or sister ",
+ "data-playback": "Joe Bloggs is your brother or sister "
}
},
{
@@ -110,8 +110,8 @@ layout: ~
"text": "Stepbrother or stepsister"
},
"attributes": {
- "data-title": "Joe Bloggs is your stepbrother or sister ",
- "data-playback": "Joe Bloggs is your stepbrother or sister "
+ "data-title": "Joe Bloggs is your stepbrother or sister ",
+ "data-playback": "Joe Bloggs is your stepbrother or sister "
}
},
{
@@ -121,8 +121,8 @@ layout: ~
"text": "Mother or father"
},
"attributes": {
- "data-title": "Joe Bloggs is your mother or father ",
- "data-playback": "Joe Bloggs is your mother or father "
+ "data-title": "Joe Bloggs is your mother or father ",
+ "data-playback": "Joe Bloggs is your mother or father "
}
},
{
@@ -132,8 +132,8 @@ layout: ~
"text": "Stepmother or stepfather"
},
"attributes": {
- "data-title": "Joe Bloggs is your stepmother or stepfather ",
- "data-playback": "Joe Bloggs is your stepmother or stepfather "
+ "data-title": "Joe Bloggs is your stepmother or stepfather ",
+ "data-playback": "Joe Bloggs is your stepmother or stepfather "
}
},
{
@@ -143,8 +143,8 @@ layout: ~
"text": "Grandchild"
},
"attributes": {
- "data-title": "Joe Bloggs is your grandchild ",
- "data-playback": "Joe Bloggs is your grandchild "
+ "data-title": "Joe Bloggs is your grandchild ",
+ "data-playback": "Joe Bloggs is your grandchild "
}
},
{
@@ -154,8 +154,8 @@ layout: ~
"text": "Grandparent"
},
"attributes": {
- "data-title": "Joe Bloggs is your grandparent ",
- "data-playback": "Joe Bloggs is your grandparent "
+ "data-title": "Joe Bloggs is your grandparent ",
+ "data-playback": "Joe Bloggs is your grandparent "
}
},
{
@@ -165,8 +165,8 @@ layout: ~
"text": "Other relation"
},
"attributes": {
- "data-title": "Joe Bloggs is your other relation ",
- "data-playback": "Joe Bloggs is your other relation "
+ "data-title": "Joe Bloggs is your other relation ",
+ "data-playback": "Joe Bloggs is your other relation "
}
},
{
@@ -177,8 +177,8 @@ layout: ~
"description": "Including foster child"
},
"attributes": {
- "data-title": "Joe Bloggs is unrelated to you",
- "data-playback": "Joe Bloggs is unrelated to you"
+ "data-title": "Joe Bloggs is unrelated to you",
+ "data-playback": "Joe Bloggs is unrelated to you"
}
}
]
diff --git a/src/components/relationships/example-relationships.njk b/src/components/relationships/example-relationships.njk
index ff4bd6cd9c..874e6f9de8 100644
--- a/src/components/relationships/example-relationships.njk
+++ b/src/components/relationships/example-relationships.njk
@@ -23,7 +23,7 @@ layout: ~
{% block main %}
{% call onsQuestion({
- "title": "Thinking of Joe Bloggs, Amanda Bloggs is their … ",
+ "title": "Thinking of Joe Bloggs, Amanda Bloggs is their … ",
"description": "Complete the sentence by selecting the appropriate relationship
",
"readDescriptionFirst": true,
"legendIsQuestionTitle": true,
@@ -31,7 +31,7 @@ layout: ~
"submitButton": true
}) %}
{{ onsRelationships({
- "playback": "Amanda Bloggs is Joe Bloggs' … ",
+ "playback": "Amanda Bloggs is Joe Bloggs' … ",
"name": "relationship",
"dontWrap": true,
"radios": [
@@ -42,8 +42,8 @@ layout: ~
"text": "Husband or wife"
},
"attributes": {
- "data-title": "Thinking of Joe Bloggs, Amanda Bloggs is their husband or wife ",
- "data-playback": "Amanda Bloggs is Joe Bloggs' husband or wife "
+ "data-title": "Thinking of Joe Bloggs, Amanda Bloggs is their husband or wife ",
+ "data-playback": "Amanda Bloggs is Joe Bloggs' husband or wife "
}
},
{
@@ -53,8 +53,8 @@ layout: ~
"text": "Legally registered civil partner"
},
"attributes": {
- "data-title": "Thinking of Joe Bloggs, Amanda Bloggs is their legally registered civil partner ",
- "data-playback": "Amanda Bloggs is Joe Bloggs' legally registered civil partner "
+ "data-title": "Thinking of Joe Bloggs, Amanda Bloggs is their legally registered civil partner ",
+ "data-playback": "Amanda Bloggs is Joe Bloggs' legally registered civil partner "
}
},
{
@@ -64,8 +64,8 @@ layout: ~
"text": "Partner"
},
"attributes": {
- "data-title": "Thinking of Joe Bloggs, Amanda Bloggs is their partner ",
- "data-playback": "Amanda Bloggs is Joe Bloggs' partner "
+ "data-title": "Thinking of Joe Bloggs, Amanda Bloggs is their partner ",
+ "data-playback": "Amanda Bloggs is Joe Bloggs' partner "
}
},
{
@@ -75,8 +75,8 @@ layout: ~
"text": "Son or daughter"
},
"attributes": {
- "data-title": "Thinking of Joe Bloggs, Amanda Bloggs is their son or daughter ",
- "data-playback": "Amanda Bloggs is Joe Bloggs' son or daughter "
+ "data-title": "Thinking of Joe Bloggs, Amanda Bloggs is their son or daughter ",
+ "data-playback": "Amanda Bloggs is Joe Bloggs' son or daughter "
}
},
{
@@ -86,8 +86,8 @@ layout: ~
"text": "Stepchild"
},
"attributes": {
- "data-title": "Thinking of Joe Bloggs, Amanda Bloggs is their stepchild ",
- "data-playback": "Amanda Bloggs is Joe Bloggs' stepchild "
+ "data-title": "Thinking of Joe Bloggs, Amanda Bloggs is their stepchild ",
+ "data-playback": "Amanda Bloggs is Joe Bloggs' stepchild "
}
},
{
@@ -97,8 +97,8 @@ layout: ~
"text": "Brother or sister"
},
"attributes": {
- "data-title": "Thinking of Joe Bloggs, Amanda Bloggs is their brother or sister ",
- "data-playback": "Amanda Bloggs is Joe Bloggs' brother or sister "
+ "data-title": "Thinking of Joe Bloggs, Amanda Bloggs is their brother or sister ",
+ "data-playback": "Amanda Bloggs is Joe Bloggs' brother or sister "
}
},
{
@@ -108,8 +108,8 @@ layout: ~
"text": "Stepbrother or stepsister"
},
"attributes": {
- "data-title": "Thinking of Joe Bloggs, Amanda Bloggs is their stepbrother or sister ",
- "data-playback": "Amanda Bloggs is Joe Bloggs' stepbrother or sister "
+ "data-title": "Thinking of Joe Bloggs, Amanda Bloggs is their stepbrother or sister ",
+ "data-playback": "Amanda Bloggs is Joe Bloggs' stepbrother or sister "
}
},
{
@@ -119,8 +119,8 @@ layout: ~
"text": "Mother or father"
},
"attributes": {
- "data-title": "Thinking of Joe Bloggs, Amanda Bloggs is their mother or father ",
- "data-playback": "Amanda Bloggs is Joe Bloggs' mother or father "
+ "data-title": "Thinking of Joe Bloggs, Amanda Bloggs is their mother or father ",
+ "data-playback": "Amanda Bloggs is Joe Bloggs' mother or father "
}
},
{
@@ -130,8 +130,8 @@ layout: ~
"text": "Stepmother or stepfather"
},
"attributes": {
- "data-title": "Thinking of Joe Bloggs, Amanda Bloggs is their stepmother or stepfather ",
- "data-playback": "Amanda Bloggs is Joe Bloggs' stepmother or stepfather "
+ "data-title": "Thinking of Joe Bloggs, Amanda Bloggs is their stepmother or stepfather ",
+ "data-playback": "Amanda Bloggs is Joe Bloggs' stepmother or stepfather "
}
},
{
@@ -141,8 +141,8 @@ layout: ~
"text": "Grandchild"
},
"attributes": {
- "data-title": "Thinking of Joe Bloggs, Amanda Bloggs is their grandchild ",
- "data-playback": "Amanda Bloggs is Joe Bloggs' grandchild "
+ "data-title": "Thinking of Joe Bloggs, Amanda Bloggs is their grandchild ",
+ "data-playback": "Amanda Bloggs is Joe Bloggs' grandchild "
}
},
{
@@ -152,8 +152,8 @@ layout: ~
"text": "Grandparent"
},
"attributes": {
- "data-title": "Thinking of Joe Bloggs, Amanda Bloggs is their grandparents ",
- "data-playback": "Amanda Bloggs is Joe Bloggs' grandparents "
+ "data-title": "Thinking of Joe Bloggs, Amanda Bloggs is their grandparents ",
+ "data-playback": "Amanda Bloggs is Joe Bloggs' grandparents "
}
},
{
@@ -163,8 +163,8 @@ layout: ~
"text": "Other relation"
},
"attributes": {
- "data-title": "Thinking of Joe Bloggs, Amanda Bloggs is their other relation ",
- "data-playback": "Amanda Bloggs is Joe Bloggs' other relation "
+ "data-title": "Thinking of Joe Bloggs, Amanda Bloggs is their other relation ",
+ "data-playback": "Amanda Bloggs is Joe Bloggs' other relation "
}
},
{
@@ -175,8 +175,8 @@ layout: ~
"description": "Including foster child"
},
"attributes": {
- "data-title": "Thinking of Joe Bloggs, Amanda Bloggs is unrelated to Joe Bloggs",
- "data-playback": "Amanda Bloggs is unrelated to Joe Bloggs"
+ "data-title": "Thinking of Joe Bloggs, Amanda Bloggs is unrelated to Joe Bloggs",
+ "data-playback": "Amanda Bloggs is unrelated to Joe Bloggs"
}
}
]
diff --git a/src/components/relationships/relationships.spec.js b/src/components/relationships/relationships.spec.js
index 283ce50739..0e259af85d 100644
--- a/src/components/relationships/relationships.spec.js
+++ b/src/components/relationships/relationships.spec.js
@@ -2,7 +2,7 @@ import { renderComponent, setTestPage } from '../../tests/helpers/rendering';
const EXAMPLE_RELATIONSHIPS = {
dontWrap: true,
- playback: "Amanda Bloggs is Joe Bloggs' … ",
+ playback: "Amanda Bloggs is Joe Bloggs' … ",
name: 'relationship',
radios: [
{
@@ -12,8 +12,8 @@ const EXAMPLE_RELATIONSHIPS = {
text: 'Grandparent',
},
attributes: {
- 'data-title': 'Thinking of Joe Bloggs, Amanda Bloggs is their grandparents ',
- 'data-playback': "Amanda Bloggs is Joe Bloggs' grandparents ",
+ 'data-title': 'Thinking of Joe Bloggs, Amanda Bloggs is their grandparents ',
+ 'data-playback': "Amanda Bloggs is Joe Bloggs' grandparents ",
},
},
{
@@ -23,8 +23,8 @@ const EXAMPLE_RELATIONSHIPS = {
text: 'Other relation',
},
attributes: {
- 'data-title': 'Thinking of Joe Bloggs, Amanda Bloggs is their other relation ',
- 'data-playback': "Amanda Bloggs is Joe Bloggs' other relation ",
+ 'data-title': 'Thinking of Joe Bloggs, Amanda Bloggs is their other relation ',
+ 'data-playback': "Amanda Bloggs is Joe Bloggs' other relation ",
},
},
{
@@ -35,8 +35,8 @@ const EXAMPLE_RELATIONSHIPS = {
description: 'Including foster child',
},
attributes: {
- 'data-title': 'Thinking of Joe Bloggs, Amanda Bloggs is unrelated to Joe Bloggs',
- 'data-playback': 'Amanda Bloggs is unrelated to Joe Bloggs',
+ 'data-title': 'Thinking of Joe Bloggs, Amanda Bloggs is unrelated to Joe Bloggs',
+ 'data-playback': 'Amanda Bloggs is unrelated to Joe Bloggs',
},
},
],
@@ -49,7 +49,7 @@ describe('script: relationships', () => {
renderComponent(
'question',
{
- title: 'Thinking of Joe Bloggs, Amanda Bloggs is their … ',
+ title: 'Thinking of Joe Bloggs, Amanda Bloggs is their … ',
readDescriptionFirst: true,
legendIsQuestionTitle: true,
legendTitleClasses: 'ons-js-relationships-legend',
@@ -61,7 +61,7 @@ describe('script: relationships', () => {
describe('when the component initialises', () => {
it('then the playback paragraph should become visible', async () => {
- const hasHideClass = await page.$eval('.ons-relationships__playback', node => node.classList.contains('ons-u-d-no'));
+ const hasHideClass = await page.$eval('.ons-relationships__playback', (node) => node.classList.contains('ons-u-d-no'));
expect(hasHideClass).toBe(false);
});
});
@@ -72,13 +72,13 @@ describe('script: relationships', () => {
});
it('the question title should be changed to reflect the relationship', async () => {
- const headingText = await page.$eval('h1', element => element.innerHTML);
- expect(headingText.trim()).toBe('Thinking of Joe Bloggs, Amanda Bloggs is their other relation ');
+ const headingText = await page.$eval('h1', (element) => element.innerHTML);
+ expect(headingText.trim()).toBe('Thinking of Joe Bloggs, Amanda Bloggs is their other relation ');
});
it('the playback should be changed to reflect the relationship', async () => {
- const playbackText = await page.$eval('.ons-relationships__playback', element => element.innerHTML);
- expect(playbackText.trim()).toBe("Amanda Bloggs is Joe Bloggs' other relation ");
+ const playbackText = await page.$eval('.ons-relationships__playback', (element) => element.innerHTML);
+ expect(playbackText.trim()).toBe("Amanda Bloggs is Joe Bloggs' other relation ");
});
});
});
diff --git a/src/foundations/highlighting/example-highlighting.njk b/src/foundations/highlighting/example-highlighting.njk
index 8cd2b46856..da1fecc59f 100644
--- a/src/foundations/highlighting/example-highlighting.njk
+++ b/src/foundations/highlighting/example-highlighting.njk
@@ -1,6 +1,6 @@
---
"noRawTab": true
---
-What was the value of the business’s total sales of food ?
-Of the 423 employees how many were part-time?
-You said 0 visitors are staying overnight here on Sunday 21 March 2021
+What was the value of the business’s total sales of food ?
+Of the 423 employees how many were part-time?
+You said 0 visitors are staying overnight here on Sunday 21 March 2021
diff --git a/src/patterns/hub-and-spoke/example-spoke-continue.njk b/src/patterns/hub-and-spoke/example-spoke-continue.njk
index 95c0326e4a..903846e212 100644
--- a/src/patterns/hub-and-spoke/example-spoke-continue.njk
+++ b/src/patterns/hub-and-spoke/example-spoke-continue.njk
@@ -33,7 +33,7 @@ layout: ~
You can also go back to the start of the section
{% endcall %}
{% call onsQuestion({
- "title": 'What is John Smith’s date of birth?',
+ "title": 'What is John Smith’s date of birth?',
"description": 'For example, 31 3 1980
',
"legendIsQuestionTitle": true,
"submitButton": {
diff --git a/src/patterns/news/example-tag.njk b/src/patterns/news/example-tag.njk
index c4e3ab6cde..f8ff433fba 100644
--- a/src/patterns/news/example-tag.njk
+++ b/src/patterns/news/example-tag.njk
@@ -30,7 +30,7 @@ layout: ~
-
All articles for Integrated data
+ All articles for Integrated data
@@ -59,7 +59,7 @@ layout: ~
"short": '1 August 2021'
}
},
- "description": 'The Office for National Statistics has today launched the first stage of the Integrated Data Service (IDS), a cloud-based platform giving analysts and researchers greater access to data from a range of sources.'
+ "description": 'The Office for National Statistics has today launched the first stage of the Integrated Data Service (IDS), a cloud-based platform giving analysts and researchers greater access to data from a range of sources.'
},
{
"thumbnail": true,
@@ -91,7 +91,7 @@ layout: ~
"short": '31 August 2018'
}
},
- "description": 'The Office for National Statistics (ONS) held the Integrated Data for Population Statistics Conference on 9 and 10 July 2018 at the University of Surrey.'
+ "description": 'The Office for National Statistics (ONS) held the Integrated Data for Population Statistics Conference on 9 and 10 July 2018 at the University of Surrey.'
}
]
}) }}