diff --git a/CHANGELOG.md b/CHANGELOG.md index 73a1708b0d..5f119b9047 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,14 @@ ### New features +#### Task list component added + +A new component has been added which creates lists of tasks that users need to complete. + +Each task in the list can have a title, status, link and an optional hint. When a link is added, the whole row is clickable. + +This change was made in [pull request #2261: Task list component](https://github.com/alphagov/govuk-frontend/pull/2261). + #### Tag design changes The design of the tag component has changed to improve accessibility and readability. diff --git a/packages/govuk-frontend-review/src/views/full-page-examples/task-list/index.njk b/packages/govuk-frontend-review/src/views/full-page-examples/task-list/index.njk new file mode 100644 index 0000000000..4127ea35f0 --- /dev/null +++ b/packages/govuk-frontend-review/src/views/full-page-examples/task-list/index.njk @@ -0,0 +1,247 @@ +--- +scenario: >- + You want to apply for a teacher training course + + + Things to try: + + 1. Making sure all content is visible without overlapping on narrower screens. + +notes: The buttons and links on this page are not functional. +--- + +{# This example is based of the live "Apply for teacher training" service at: https://www.apply-for-teacher-training.service.gov.uk/candidate/application #} +{% extends "layouts/full-page-example.njk" %} + +{% from "govuk/components/task-list/macro.njk" import govukTaskList %} +{% from "govuk/components/button/macro.njk" import govukButton %} + +{% set pageTitle = "Apply for teacher training" %} +{% block pageTitle %}{{ pageTitle }} - GOV.UK{% endblock %} + + +{% block content %} +
Last saved on 15 May 2023 at 2:21pm
+ + + +You can apply for up to 4 courses.
+ {{ govukTaskList({ + items: [ + { + title: { text: "Choose your courses" }, + href: "#", + status: { + tag: { + text: "Incomplete", + classes: "govuk-tag--blue" + } + } + } + ] + })}} + +Training providers will only see your answers to this section if you accept an offer from them.
+ {{ govukTaskList({ + items: [ + { + title: { text: "Equality and diversity questions" }, + href: "#", + status: { + tag: { + text: "Incomplete", + classes: "govuk-tag--blue" + } + } + } + ] + }) }} + +