Closed HelenOsg closed 3 years ago
Emma Nicol – User research Craig Abbott – Accessibility Steven Borthwick – Interaction design Martin Wake – Content design Colin Oakley – Front-end development Daniel MacLaughlin – Product owner
Design system team Jon Hurrell Helen Osgerby – note taker Simone Duca
Based on a majority vote, the group decided that:
The contribution can be published as it is, although guidance should be updated with information on best practice and look at revising ‘when not to use’.
Guidance should include number of items to be shown (can we get research from team’s using the pattern) and suggest other design solutions in the ‘when not to use’ section’. Include that this pattern has only been used and research on agent-facing services in the ‘research’ section.
Review design and code.
This has been published on the design system. If you have any research insights or have used the pattern, let us know on the GitHub discussion.
What
A list of actions shown in chronological order. For example, claim history.
Example: Find a job
Example: Access to work
Why
To show agents a history of the claim/claimant.
Anything else
The timeline pattern is currently in the GDS backlog and a number of departments have a timeline component being used. There is no standardised pattern across departments. The DWP timeline component has been in use for 2 years.
Timeline appears in many other gov design systems (HMRC, Home Office and MOJ).
Research
Services
Code
HTML
```htmlClaim history
Claim disallowed
Claim disallowed by John Smith 1 January 2018 at 13:02
Claimant over state pension age.
Marriage verified
Marriage verified by John Smith 1 January 2018 at 13:21
Marriage certificate uploaded to DRS.
CSS
```CSS .dwp-timeline { border-left: 3px solid #005ea5; } .dwp-timeline__entry { margin: 2em 0; padding-left: 1em; position: relative; } .dwp-timeline__entry::before { background-color: #005ea5; content: ' '; height: 3px; left: 0; position: absolute; top: .5em; width: 10px; } .dwp-timeline__entry .dwp-timeline__title { display: block; font-weight: 700; } .dwp-timeline__entry .dwp-timeline__author, .dwp-timeline__entry .dwp-timeline__date { color: #6f777b; display: block; } .dwp-timeline__entry .dwp-timeline__info { margin-top: 0; } .dwp-timeline__entry .dwp-timeline__body { display: block; } ```Sass
```SCSS @import 'colours'; .dwp-timeline { border-left: 3px solid $govuk-blue; } .dwp-timeline__entry { margin: 2em 0; padding-left: 1em; position: relative; &::before { background-color: $govuk-blue; content: ' '; height: 3px; left: 0; position: absolute; top: .5em; width: 10px; } .dwp-timeline__title { display: block; font-weight: 700; } .dwp-timeline__author, .dwp-timeline__date { color: $secondary-text-colour; display: block; } .dwp-timeline__info { margin-top: 0; } .dwp-timeline__body { display: block; } } ```Sketch
sketch.zip
Original issue information: 14 Dec 2017 @abbott567 https://github.com/dwp/design-system-community-backlog/issues/44