Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] DAC accessibility examples #3503

Closed
wants to merge 204 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
204 commits
Select commit Hold shift + click to select a range
5c114b8
Add placeholder
frankieroberto Jun 24, 2021
c0301f6
create basic task list component
MK-NG Jun 28, 2021
4dd67ea
remove trailing space
frankieroberto Jun 28, 2021
36cade0
Add govuk-link class
frankieroberto Jun 28, 2021
906d48b
Bugfix: use html if it exists
frankieroberto Jun 28, 2021
0f3b60b
Use row.href instead of row.url.text
frankieroberto Jun 28, 2021
e184696
Update example yaml file
frankieroberto Jun 28, 2021
f387f70
Fix typo
frankieroberto Jul 2, 2021
59d5c37
Remove <strong> tag for now
frankieroberto Jul 2, 2021
4266a65
Consistent indenting
frankieroberto Jul 2, 2021
e609670
Fix prefix
frankieroberto Jul 2, 2021
927558b
add task list hint and aria-describedby tag
MK-NG Jul 5, 2021
1f6e2c9
Set IDs using idPrefix + row number
frankieroberto Jul 15, 2021
f45700f
Remove whitespace
frankieroberto Jul 15, 2021
f4c9761
Merge branch 'main' into task-list-component
frankieroberto Aug 17, 2021
181273d
Change 'rows' to 'items'
frankieroberto Aug 17, 2021
80695ba
Merge branch 'main' into task-list-component
frankieroberto Nov 25, 2021
64a6b3d
Tweaked task-list example
steve-oconnor Dec 8, 2021
490bbde
Highlight tag CSS added
steve-oconnor Dec 8, 2021
6ff1680
Use new status colours
frankieroberto Dec 8, 2021
761c434
Add description
frankieroberto Dec 8, 2021
b615641
Merge branch 'main' into task-list-component
frankieroberto Mar 4, 2022
3cf2106
Task list tag updates
steve-oconnor Mar 4, 2022
4d598eb
Task list yaml update
steve-oconnor Mar 4, 2022
ddf8bb1
Merge branch 'task-list-component' of https://github.com/x-govuk/govu…
frankieroberto Mar 4, 2022
113ba7f
Update package-lock to version from main
frankieroberto Mar 4, 2022
840a490
Flesh out the examples
frankieroberto Mar 4, 2022
affcf91
Remove duplicated key in YAML file
frankieroberto Mar 10, 2022
1b3a9fe
Add basic template test
frankieroberto Mar 10, 2022
727e090
Reduce padding
frankieroberto Mar 14, 2022
a876c45
Remove redundant CSS
frankieroberto Mar 14, 2022
000baf1
Improve mobile view
frankieroberto Mar 14, 2022
171159d
Merge branch 'main' into task-list-component
frankieroberto Jun 16, 2022
e293de3
Bugfix: status should always have 4px padding on the left
frankieroberto Jun 16, 2022
bd143d6
Replace spans with divs
frankieroberto Jun 16, 2022
863b6d0
use govuk-spacing helper
frankieroberto Jun 16, 2022
f773f8f
Redesign so that the whole row is clickable
frankieroberto Jun 17, 2022
137d9c0
Merge branch 'task-list-component' of https://github.com/x-govuk/govu…
frankieroberto Jun 17, 2022
eba00be
Use generated content to cover row with link
frankieroberto Jun 25, 2022
5872d64
Merge branch 'main' into task-list-component
frankieroberto Jul 4, 2022
36e12e0
Add README following other components
frankieroberto Jul 4, 2022
ce76f41
Update colour names and css
frankieroberto Jul 4, 2022
81bb253
Improve tests
frankieroberto Jul 4, 2022
a39e343
clean up the css
frankieroberto Jul 4, 2022
01e05e9
Further test for aria relationship between hint and link
frankieroberto Jul 4, 2022
4ea697f
Merge branch 'main' into task-list-component
frankieroberto Aug 5, 2022
b7d5ccb
Indent the item params documentation
frankieroberto Aug 5, 2022
1388997
Add documentation for idPrefix
frankieroberto Aug 5, 2022
e9d97ef
Shorten class name for link
frankieroberto Aug 5, 2022
d5262af
Shorten link class
frankieroberto Aug 5, 2022
cb947f0
Remove container element and apply styles to list item
frankieroberto Aug 5, 2022
adaf154
Merge remote-tracking branch 'upstream/main' into task-list-component
frankieroberto Sep 30, 2022
e2cc4c1
Merge branch 'main' of https://github.com/alphagov/govuk-frontend int…
frankieroberto Jan 5, 2023
e67b84f
Add bottom margin to the component
frankieroberto Jan 5, 2023
db88a02
Update import statements
frankieroberto Jan 6, 2023
ccee4e6
Update unit test config
frankieroberto Jan 6, 2023
6f7938d
Fix test setup
frankieroberto Jan 6, 2023
f1412e7
Convert spans to divs
frankieroberto Jan 6, 2023
e5017f6
Fix typo
frankieroberto Feb 6, 2023
e025618
Template code style
frankieroberto Feb 6, 2023
2194be2
Fix typo
frankieroberto Feb 6, 2023
76acefb
Add exit this page component
owenatgov Mar 20, 2023
4ac4e3c
Add Child Maintenance full page example
owenatgov Mar 29, 2023
8095ff5
Initial change to view and examples
CharlotteDowns Apr 14, 2023
82c31e2
Initial change to view and examples
CharlotteDowns Apr 14, 2023
8f059c6
Merge commit 'refs/pull/2259/head' of https://github.com/alphagov/gov…
CharlotteDowns Apr 17, 2023
5d1121f
add latest task-list code and other examples to the preview
CharlotteDowns Apr 18, 2023
295ff59
add latest task-list code and other examples to the preview
CharlotteDowns Apr 18, 2023
86482d4
remove hidden examples from full page examples link
CharlotteDowns Apr 18, 2023
0b898a6
Merge branch 'DAC-accessibility-examples' of https://github.com/alpha…
CharlotteDowns Apr 18, 2023
1a28da4
Add exit this page component
owenatgov Mar 20, 2023
4fc3bf7
Add Child Maintenance full page example
owenatgov Mar 29, 2023
cf2319d
Initial change to view and examples
CharlotteDowns Apr 14, 2023
c98e477
Add placeholder
frankieroberto Jun 24, 2021
783ae3f
create basic task list component
MK-NG Jun 28, 2021
882404b
remove trailing space
frankieroberto Jun 28, 2021
7cc16fc
Add govuk-link class
frankieroberto Jun 28, 2021
9aeca94
Bugfix: use html if it exists
frankieroberto Jun 28, 2021
3a8bc4f
Use row.href instead of row.url.text
frankieroberto Jun 28, 2021
2e04482
Update example yaml file
frankieroberto Jun 28, 2021
44d8aef
Fix typo
frankieroberto Jul 2, 2021
d52f15b
Remove <strong> tag for now
frankieroberto Jul 2, 2021
d53d10a
Consistent indenting
frankieroberto Jul 2, 2021
b27b74b
Fix prefix
frankieroberto Jul 2, 2021
070ed58
add task list hint and aria-describedby tag
MK-NG Jul 5, 2021
c85a267
Set IDs using idPrefix + row number
frankieroberto Jul 15, 2021
5c9ddb9
Remove whitespace
frankieroberto Jul 15, 2021
b916fe6
Change 'rows' to 'items'
frankieroberto Aug 17, 2021
85a7f18
Tweaked task-list example
steve-oconnor Dec 8, 2021
8c71b5a
Highlight tag CSS added
steve-oconnor Dec 8, 2021
54dbe1e
Use new status colours
frankieroberto Dec 8, 2021
424f1fa
Add description
frankieroberto Dec 8, 2021
21dfd5c
Task list tag updates
steve-oconnor Mar 4, 2022
3c82b70
Task list yaml update
steve-oconnor Mar 4, 2022
0a07bed
Update package-lock to version from main
frankieroberto Mar 4, 2022
2649db4
Flesh out the examples
frankieroberto Mar 4, 2022
b4647bb
Remove duplicated key in YAML file
frankieroberto Mar 10, 2022
5f9e246
Add basic template test
frankieroberto Mar 10, 2022
015b0e1
Reduce padding
frankieroberto Mar 14, 2022
cae0998
Remove redundant CSS
frankieroberto Mar 14, 2022
4b39eae
Improve mobile view
frankieroberto Mar 14, 2022
9650c85
Bugfix: status should always have 4px padding on the left
frankieroberto Jun 16, 2022
3067bbe
Replace spans with divs
frankieroberto Jun 16, 2022
23689d1
Redesign so that the whole row is clickable
frankieroberto Jun 17, 2022
7e4e04c
use govuk-spacing helper
frankieroberto Jun 16, 2022
16c7bf2
Use generated content to cover row with link
frankieroberto Jun 25, 2022
76e0fec
Add README following other components
frankieroberto Jul 4, 2022
cd23381
Update colour names and css
frankieroberto Jul 4, 2022
63b024a
Improve tests
frankieroberto Jul 4, 2022
aea1ab3
clean up the css
frankieroberto Jul 4, 2022
0eecd08
Further test for aria relationship between hint and link
frankieroberto Jul 4, 2022
cee3d98
Indent the item params documentation
frankieroberto Aug 5, 2022
089bde7
Add documentation for idPrefix
frankieroberto Aug 5, 2022
1613988
Shorten class name for link
frankieroberto Aug 5, 2022
ee32b0f
Shorten link class
frankieroberto Aug 5, 2022
c999db3
Remove container element and apply styles to list item
frankieroberto Aug 5, 2022
ceee3b5
Add bottom margin to the component
frankieroberto Jan 5, 2023
b553c02
Update import statements
frankieroberto Jan 6, 2023
9da1446
Update unit test config
frankieroberto Jan 6, 2023
0ab0db3
Fix test setup
frankieroberto Jan 6, 2023
fc49790
Convert spans to divs
frankieroberto Jan 6, 2023
20938cd
Fix typo
frankieroberto Feb 6, 2023
89b7160
Template code style
frankieroberto Feb 6, 2023
ce9af82
Fix typo
frankieroberto Feb 6, 2023
30a3e1a
remove hidden examples from full page examples link
CharlotteDowns Apr 18, 2023
6982b6c
Fix linting issues
querkmachine Apr 18, 2023
fc1b8e3
Remove unnecessary test
querkmachine Apr 18, 2023
9a8c4d0
Rebuild package-lock.json after messy rebase
querkmachine Apr 18, 2023
ca260da
Add exit this page component
owenatgov Mar 20, 2023
7472975
Add Child Maintenance full page example
owenatgov Mar 29, 2023
c0c4cda
Initial change to view and examples
CharlotteDowns Apr 14, 2023
e446333
Add placeholder
frankieroberto Jun 24, 2021
4d57968
create basic task list component
MK-NG Jun 28, 2021
50234f0
remove trailing space
frankieroberto Jun 28, 2021
a2fddcd
Add govuk-link class
frankieroberto Jun 28, 2021
a108e0e
Bugfix: use html if it exists
frankieroberto Jun 28, 2021
1749610
Use row.href instead of row.url.text
frankieroberto Jun 28, 2021
bc181b5
Update example yaml file
frankieroberto Jun 28, 2021
c83de50
Fix typo
frankieroberto Jul 2, 2021
d751023
Remove <strong> tag for now
frankieroberto Jul 2, 2021
81605e9
Consistent indenting
frankieroberto Jul 2, 2021
c551dcd
Fix prefix
frankieroberto Jul 2, 2021
a36fec6
add task list hint and aria-describedby tag
MK-NG Jul 5, 2021
1af6b0d
Set IDs using idPrefix + row number
frankieroberto Jul 15, 2021
cdb6f78
Remove whitespace
frankieroberto Jul 15, 2021
5e0f87f
Change 'rows' to 'items'
frankieroberto Aug 17, 2021
8d43326
Tweaked task-list example
steve-oconnor Dec 8, 2021
dea1bce
Highlight tag CSS added
steve-oconnor Dec 8, 2021
70b1661
Use new status colours
frankieroberto Dec 8, 2021
10a285f
Add description
frankieroberto Dec 8, 2021
f8c7f68
Task list tag updates
steve-oconnor Mar 4, 2022
5fafca6
Task list yaml update
steve-oconnor Mar 4, 2022
f883f13
Flesh out the examples
frankieroberto Mar 4, 2022
39db212
Remove duplicated key in YAML file
frankieroberto Mar 10, 2022
569713a
Add basic template test
frankieroberto Mar 10, 2022
0034344
Reduce padding
frankieroberto Mar 14, 2022
13ad174
Remove redundant CSS
frankieroberto Mar 14, 2022
6c135a8
Improve mobile view
frankieroberto Mar 14, 2022
f91e519
Bugfix: status should always have 4px padding on the left
frankieroberto Jun 16, 2022
7784672
Replace spans with divs
frankieroberto Jun 16, 2022
50ebbfb
Redesign so that the whole row is clickable
frankieroberto Jun 17, 2022
478dc7c
use govuk-spacing helper
frankieroberto Jun 16, 2022
2e25529
Use generated content to cover row with link
frankieroberto Jun 25, 2022
6c01514
Add README following other components
frankieroberto Jul 4, 2022
95e2c47
Update colour names and css
frankieroberto Jul 4, 2022
6bafce3
Improve tests
frankieroberto Jul 4, 2022
8db5b6b
clean up the css
frankieroberto Jul 4, 2022
694701e
Further test for aria relationship between hint and link
frankieroberto Jul 4, 2022
1e751c7
Indent the item params documentation
frankieroberto Aug 5, 2022
6784396
Add documentation for idPrefix
frankieroberto Aug 5, 2022
1587a03
Shorten class name for link
frankieroberto Aug 5, 2022
1c350e9
Shorten link class
frankieroberto Aug 5, 2022
ff1ff81
Remove container element and apply styles to list item
frankieroberto Aug 5, 2022
d502bcf
Add bottom margin to the component
frankieroberto Jan 5, 2023
de51a03
Update import statements
frankieroberto Jan 6, 2023
bdd1e5a
Update unit test config
frankieroberto Jan 6, 2023
5a44d26
Fix test setup
frankieroberto Jan 6, 2023
7a11a58
Convert spans to divs
frankieroberto Jan 6, 2023
90eae88
Fix typo
frankieroberto Feb 6, 2023
8256bec
Template code style
frankieroberto Feb 6, 2023
64c5496
Fix typo
frankieroberto Feb 6, 2023
72e411c
remove hidden examples from full page examples link
CharlotteDowns Apr 18, 2023
13507a1
Fix linting issues
querkmachine Apr 18, 2023
6cc559e
Remove unnecessary test
querkmachine Apr 18, 2023
5c99e21
Fix npm package paths
colinrotherham Apr 18, 2023
53474db
Tweaked task-list example
steve-oconnor Dec 8, 2021
c65972b
Fix dependency version mismatch
querkmachine Apr 18, 2023
191d561
Rebuild lockfile after uninstall/reinstall of `postcss-loader`
colinrotherham Apr 18, 2023
296140d
Update `sass-embedded`
colinrotherham Apr 18, 2023
90a307a
Update examples based on review and provide more information on the f…
CharlotteDowns Apr 24, 2023
ec669ba
Merge branch 'DAC-accessibility-examples' of https://github.com/alpha…
CharlotteDowns Apr 24, 2023
072b28f
Fix Sass deprecation warnings
querkmachine Apr 19, 2023
3006e6f
Fix duplicated code from merge
querkmachine Apr 24, 2023
45a6ef6
Unhide search example
CharlotteDowns Apr 25, 2023
7a8d79e
Unhide server side cookies example
CharlotteDowns Apr 25, 2023
e040449
unhide feedback example
CharlotteDowns Apr 25, 2023
c64f7aa
Change shortcut timeout methodology
querkmachine Apr 5, 2023
3303f84
Add prefix/suffix and accordion examples
CharlotteDowns Apr 26, 2023
3b7d07c
Merge branch 'DAC-accessibility-examples' of https://github.com/alpha…
CharlotteDowns Apr 26, 2023
89693d6
changes to content on the full examples pages
CharlotteDowns May 3, 2023
06c0751
Implement consistency suggestions
querkmachine May 3, 2023
16c3e9c
Remove won't
CharlotteDowns May 3, 2023
0cb56df
Consistent content
CharlotteDowns May 3, 2023
2ea2f42
Heading structure changes
CharlotteDowns May 3, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 1 addition & 19 deletions app/src/app.test.mjs
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
import { join } from 'path'

import { load } from 'cheerio'
import { paths, ports } from 'govuk-frontend-config'
import { getDirectories } from 'govuk-frontend-lib/files'
import { ports } from 'govuk-frontend-config'

const expectedPages = [
'/',
Expand Down Expand Up @@ -41,21 +38,6 @@ describe(`http://localhost:${ports.app}`, () => {
})
})

describe('/', () => {
it('should display the list of components', async () => {
const response = await fetchPath('/')
const $ = load(await response.text())

const componentNames = await getDirectories(join(paths.src, 'govuk/components'))
const componentsList = $('li a[href^="/components/"]').get()

// Since we have an 'all' component link that renders the default example of all
// components, there will always be one more expected link.
const expectedComponentLinks = componentNames.length + 1
expect(componentsList.length).toEqual(expectedComponentLinks)
})
})

describe('/robots.txt', () => {
it('should allow crawling by robots', async () => {
const response = await fetchPath('/robots.txt')
Expand Down
6 changes: 6 additions & 0 deletions app/src/routes/full-page-examples.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,21 @@ export default (app) => {
routes.haveYouChangedYourName(app)
routes.feedback(app)
routes.howDoYouWantToSignIn(app)
routes.makeAPayment(app)
routes.search(app)
routes.searchThree(app)
routes.passportDetails(app)
routes.updateYourAccountDetails(app)
routes.uploadYourPhoto(app)
routes.uploadYourPhotoSuccess(app)
routes.whatIsYourAddress(app)
routes.whatAreYourBankDetails(app)
routes.whatIsYourNationalInsuranceNumber(app)
routes.whatIsYourNationality(app)
routes.whatIsYourTelephoneNumber(app)
routes.whatIsYourPostcode(app)
routes.whatWasTheLastCountryYouVisited(app)
routes.willYouBeTravellingTo(app)

app.get('/full-page-examples', async (req, res, next) => {
res.locals.fullPageExamples = await getFullPageExamples()
Expand Down
20 changes: 20 additions & 0 deletions app/src/views/examples/exit-this-page-with-skiplink/index.njk
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{% extends "layout.njk" %}

{% from "exit-this-page/macro.njk" import govukExitThisPage %}
{% from "skip-link/macro.njk" import govukSkipLink %}

{% block skipLink %}
{{ super() }}
{{ govukSkipLink({
href: "https://www.gov.uk/",
text: "Exit this page",
classes: "govuk-js-exit-this-page-skiplink"
}) }}
{% endblock %}

{% block content %}
{{ govukExitThisPage({
text: "Exit this page",
redirectUrl: "https://www.gov.uk/"
}) }}
{% endblock %}
2 changes: 2 additions & 0 deletions app/src/views/full-page-examples/announcements/index.njk
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
scenario: You want to read this article about '2018’s oddest requests from Brits abroad'.
notes: Based on https://www.gov.uk/government/news/strictly-vampires-and-sausages-2018s-oddest-requests-from-brits-abroad

hidden: true
---
{% extends "full-page-example.njk" %}

Expand Down
2 changes: 2 additions & 0 deletions app/src/views/full-page-examples/applicant-details/index.njk
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ notes: >-
This example shows GOV.UK Frontend used alongside our 'legacy' frontend
frameworks. The full name field, and links within the header and footer have
known accessibility issues.

hidden: true
---

{% extends "full-page-example-legacy.njk" %}
Expand Down
2 changes: 2 additions & 0 deletions app/src/views/full-page-examples/bank-holidays/index.njk
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ scenario: >-
notes: >-
This example is based on https://www.gov.uk/bank-holidays.
The data is not 'live' and so the answer is unlikely to be correct.

hidden: true
---
{% extends "full-page-example.njk" %}

Expand Down
2 changes: 2 additions & 0 deletions app/src/views/full-page-examples/campaign-page/index.njk
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ scenario: >-

notes: >-
Based on https://www.gov.uk/coronavirus

hidden: true
---

{% extends "full-page-example.njk" %}
Expand Down
2 changes: 2 additions & 0 deletions app/src/views/full-page-examples/check-your-answers/index.njk
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ scenario: >-
1. You would like to change your answer for one of the questions.

notes: The links to change your answers are not functional.

hidden: true
---

{# This example is based of the "Check your answers before sending your application" example: https://design-system.service.gov.uk/patterns/check-answers/default/index.html #}
Expand Down
164 changes: 164 additions & 0 deletions app/src/views/full-page-examples/child-maintenance/index.njk
Original file line number Diff line number Diff line change
@@ -0,0 +1,164 @@
---
scenario: >-
This page includes an Exit this Page component. Things to try:

1. Activate the Exit this Page button using your keyboard, mouse or trackpad.

2. Click the Esc key on your keyboard 3 times to use the 'Exit this page' button.

3. Activating the Exit this Page button on a small screen view.

4. Scroll down the page to see if the Exit this Page button remains sticky.

5. Tabbing through the page to find the Exit this Page "skip link" at the top of the accessibility tree.

notes: The Exit this Page button and skip link are the only navigational elements you need to interact with as part of this example.
---

{% extends "full-page-example.njk" %}

{% from "breadcrumbs/macro.njk" import govukBreadcrumbs %}
{% from "phase-banner/macro.njk" import govukPhaseBanner %}
{% from "exit-this-page/macro.njk" import govukExitThisPage %}
{% from "inset-text/macro.njk" import govukInsetText %}
{% from "details/macro.njk" import govukDetails %}
{% from "button/macro.njk" import govukButton %}

{% set pageTitle = "Child maintenance" %}
{% block pageTitle %}{{ pageTitle }} - GOV.UK{% endblock %}

{% block skipLink %}
{{ super() }}
{{ govukSkipLink({
href: 'https://bbc.co.uk/weather/',
text: 'Exit this page',
classes: 'govuk-js-exit-this-page-skiplink'
}) }}
{% endblock %}

{% block beforeContent %}
{{ govukPhaseBanner({
tag: {
text: "beta"
},
html: 'This is a new service – your <a class="govuk-link" href="#">feedback</a> will help us to improve it.'
}) }}

{{ govukBreadcrumbs({
classes: '',
collapseOnMobile: true,
items: [
{
html: 'Home',
href: '/'
},
{
html: ' Births, deaths, marriages and care',
href: '/'
},
{
html: 'Having a child, parenting and adoption',
href: '/'
}
]
}) }}
{% endblock %}

{% block content %}
{{ govukExitThisPage({
text: "Exit this page",
redirectUrl: "https://www.google.com/"
}) }}

<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">
<h1 class="govuk-heading-xl">Get help arranging child maintenance</h1>

<p class="govuk-body-m">This service will give you information about the different options available to make a child maintenance arrangement. These are:</p>

<ul class="govuk-list govuk-list--bullet">
<li>making your own arrangement</li>
<li>using the Child Maintenance Service</li>
</ul>

<p class="govuk-body-m">
<a class="govuk-link" href="contact-child-maintenance-choices">Contact Child Maintenance Choices if you live in Northern Ireland</a>
</p>

<h2 class="govuk-heading-m">Using the Child Maintenance Service</h2>
<h3 class="govuk-heading-s">If you already have an active case</h3>
<p class="govuk-body-m">If you have a case with the same parent you should <a href="https://www.gov.uk/child-maintenance-service/change-of-circumstances" class="govuk-link"> report a change of circumstances </a>instead of making a new arrangement. You can use this service if you want to set up a new arrangement with a different parent.</p>

<h3 class="govuk-heading-s">Fees</h3>
<p class="govuk-body-m">If you decide to use the Child Maintenance Service the application fee is £20 and cannot be refunded. You’ll need a debit or credit card to pay this. It does not guarantee an arrangement.</p>
<p class="govuk-body-m">You will not have to pay the application fee if you:</p>
<ul class="govuk-list govuk-list--bullet">
<li>are under 19 years old</li>
<li>have experienced domestic abuse</li>
</ul>
<p class="govuk-body-m">
<a class="govuk-link" href="https://www.gov.uk/guidance/domestic-abuse-how-to-get-help">Get help if you have experienced domestic abuse</a>
</p>

<h3 class="govuk-heading-s">If you’re worried about contacting the other parent</h3>
<p class="govuk-body-m">If you decide to use the Child Maintenance Service, we will try to contact the other parent about setting up child maintenance – you do not need to.</p>
<p class="govuk-body-m">We will share the following details with the other parent:</p>
<ul class="govuk-list govuk-list--bullet">
<li>your name</li>
<li>your child’s name and date of birth</li>
<li>the number of days your child stays with the parent who will be making payments - the other parent will need to confirm this</li>
</ul>

<p class="govuk-body-m">If you are the parent who will be paying child maintenance, we will also share the following details with the other parent:</p>
<ul class="govuk-list govuk-list--bullet">
<li>your income information</li>
<li>whether any additional children are taken into account in the calculation - we will not share identifying details about these children, only how many have been taken into account</li>
</ul>

{{ govukInsetText({
text: "We will not share any other information with the other parent as a part of your application."
}) }}

{% set doIHaveAnActiveCase %}
You will need to <a href="/get-help-arranging-child-maintenance/contact-child-maintenance-service" target="_blank" class="govuk-link">contact child maintenance (opens in new tab)</a>.
{% endset %}

{% set payingToRecieving %}
<p class="govuk-body">You will need to close your existing Child Maintenance case and open a new one.</p>
<p class="govuk-body">If you were the original applicant, you can close your case in <a href="https://childmaintenanceservice.direct.gov.uk/onlinerevive/public/landing-screen" target="blank" class="govuk-link">MCMC</a> , or you can <a href="/get-help-arranging-child-maintenance/contact-child-maintenance-service" target="blank" class="govuk-link">contact child maintenance (opens in new tab)</a>.</p>
<p class="govuk-body">If you were not the original applicant, you will need to <a href="/get-help-arranging-child-maintenance/contact-child-maintenance-service" target="_blank" class="govuk-link">contact child maintenance (opens in new tab)</a>.</p>
{% endset %}

{% set recievingToPaying %}
<p class="govuk-body">You will need to close your existing Child Maintenance case and open a new one.</p>
<p class="govuk-body">If you were the original applicant, you can close your case in <a href="https://childmaintenanceservice.direct.gov.uk/onlinerevive/public/landing-screen" target="blank" class="govuk-link">MCMC</a> , or you can <a href="/get-help-arranging-child-maintenance/contact-child-maintenance-service" target="blank" class="govuk-link">contact child maintenance (opens in new tab)</a>.</p>
<p class="govuk-body">If you were not the original applicant, you will need to <a href="/get-help-arranging-child-maintenance/contact-child-maintenance-service" target="_blank" class="govuk-link">contact child maintenance (opens in new tab)</a>.</p>
{% endset %}

{{ govukDetails({
summaryText: 'I do not know if I have an active case',
html: doIHaveAnActiveCase
}) }}

{{ govukDetails({
summaryText: 'I need to change from paying to receiving child maintenance',
html: payingToRecieving
}) }}

{{ govukDetails({
summaryText: 'I need to change from receiving to paying child maintenance',
html: recievingToPaying
}) }}

{{ govukButton({
text: "Start now",
href: "#",
isStartButton: true
}) }}
</div>
<div class="govuk-grid-column-one-third">
<p class="govuk-body">There could be other content here.</p>
<p class="govuk-body">In ea ex nulla veniam commodo Lorem labore dolor et ea in deserunt qui. Enim adipisicing dolore est amet magna. Cupidatat adipisicing labore consectetur exercitation Lorem dolor ipsum et deserunt est. Sit laborum dolore sit id eiusmod.</p>
</div>
</div>
{% endblock %}
6 changes: 6 additions & 0 deletions app/src/views/full-page-examples/confirm-delete/index.njk
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
---

hidden: true

---

{% extends "full-page-example.njk" %}

{% from "warning-text/macro.njk" import govukWarningText %}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
---
name: Cookie banner (client side)
scenario: >-
You need to make a choice about whether to accept cookies or not.
This page includes a Cookie banner component. Things to try:

notes: >-
For this example, when the user makes a choice to accept or reject cookies
their preference is handled entirely on the client side with no page
navigation, and JavaScript is used to swap out the cookie banner for the
'confirmation' banner.

The choice to accept or reject cookies will not be remembered.
1. Make a choice about whether to accept cookies or not.

The content of the page is not important for this scenario.
notes: >-
For this example, when the user makes a choice to accept or reject cookies their preference is handled with no page navigation. JavaScript is used to swap out the cookie banner for the 'confirmation' banner.

The choice to accept or reject cookies will not be remembered.
---

{# This example is based of the live "Apply online for a UK passport" start page: https://www.gov.uk/apply-renew-passport #}
Expand Down Expand Up @@ -161,37 +158,6 @@ notes: >-
]
}) }}
</div>

<div class="govuk-grid-column-one-third">

<!-- The Related items component is not part of GOV.UK Frontend but will be styled if used in the Prototype Kit -->

<aside class="app-related-items" role="complementary">
<h2 class="govuk-heading-m" id="subsection-title">
Related content
</h2>
<nav role="navigation" aria-labelledby="subsection-title">
<ul class="govuk-list govuk-!-font-size-16">
<li class="gem-c-related-navigation__link">
<a class="govuk-link" href="#/get-a-passport-urgently">Get a passport urgently</a>
</li>
<li class="gem-c-related-navigation__link">
<a class="govuk-link" href="#/renew-adult-passport">Renew or replace your adult passport</a>
</li>
<li class="gem-c-related-navigation__link">
<a class="govuk-link" href="#/passport-fees">Passport fees</a>
</li>
<li class="gem-c-related-navigation__link">
<a class="govuk-link" href="#/government/news/need-to-renew-your-british-passport-go-online">Need to renew your British passport? Go online</a>
</li>
<li class="gem-c-related-navigation__link">
<a class="govuk-link" href="#/government/news/changes-to-passport-applications-for-british-nationals-living-abroad">Changes to passport applications for British nationals living abroad</a>
</li>
</ul>
</nav>
</aside>

</div>
</div>

<script>
Expand Down
Loading