Open davidhunter08 opened 1 year ago
Design changes:
- no longer uppercase
- no longer bold
- remove 1px extra letter spacing
- increase font size to 19px
- change colours to use lighter background colours
These changes are to improve the accessibility and readability of the tag text, and to make the tags look less like clickable buttons.
Here's a preview of the changes.
I asked on x-gov Slack if the background colour of the tag needs a contrast ratio of at least 3:1 against the page background?
The answer...
Non-text contrast only applies to interactive components and graphics necessary to understand the content.
I'd argue that tag backgrounds/borders do not need to meet the 3:1 contrast ratio as they are not interactive elements and the context tags provide is in the tag's text, with the colour being supplemental.
The text should still meet a minimum contrast ratio of 4.5:1 with whatever background colour is in use.
Also note how the gov.uk tag will render in high contrast mode...
Our current tag element does the same using a transparent
outline
.In v5 we redesigned the tags and removed the outline, however, as it made the tags look very similar to how buttons are rendered in High Contrast Mode. We've opted to bolden the text instead.
@davidhunter08 so would that apply to the edges of cards too? (thinking about the "keyline or no?" question)
Have just been looking through a Mural page of research findings from Compass and have found this comment. ->
User believes tag to be a clickable button.
Possible solutions to make this element look less like a button include:
Desaturating the background colour: this would reduce the contrast on the white background, and differentiate itself from the saturated green primary CTAs. Side-by-side the new GDS tag colours are slightly dimmer, which sacrifices the small pop of vibrance on the page in exchange for (hopefully) less users mistaking the tag for a button. (https://github.com/alphagov/govuk-design-system-backlog/issues/62)
Reducing text weight from bold to regular: This change is also in line with the GDS redesign. This solution seems to lend itself to larger screens, in which larger font sizes can be used (GDS text size is 19pt compared to our mobile size of 14pt). This change would likely require our text colour to be made darker for increased contrast, but will be something in which I will experiment.
@growe88
Example from Hackney Council
Prescription and medicines use tag to tell status of an prescription order
As part of their work on a new prescription journey the team ran some usability testing with people who had access needs but did not use assistive technology. The testing included the use of status tags to indicate when prescriptions were ready to collect, part ready to collect or still being prepared.
Across the 5 sessions there were a couple of key findings:
Quotes ‘The choice of blue and purple does seem a little random… preparing, is that the first step? Is there something else that it might say?’ ‘I don’t understand why it’s green, blue and then purple, why isn’t it just the same colour?’
Reflection
As part of our work in N&M we are looking at inbox management features. We have recently done some user testing (moderated and unmoderated) on flagging, along with sending out a survey, to understand how users might mark and more easily find messages they deem to be important.
As a result, we have settled on Flagging as the inbox management feature to meet this user need, for which we are likely going to use an orange tag for. Our thinking for using the orange tag is:
We did some initial testing with a blue tag but users thought this was too subtle. A few users suggested using green or red for the 'flagged' tag, but for semantic reasons we will be avoiding doing this.
The flag tag will be applied to a message via a link text button at the bottom of the message which acts somewhat as a toggle. Clicking 'Flag message' will apply the orange 'Flagged' tag to the top of the message which will also be visible on the message preview. Once a message is flagged, the link text button label changes to 'Unflag message'.
Interestingly, this might be the first case of a user-applied tag?
To be consistent throughout the NHS App we need an aligned approach to tag colours and what the colour represents.
Attached are the tags used by:
GP Services Blue - By phone Purple - In person
Appointments: Red - action needed from user Grey - cancelled Yellow - pending change
Hospital docs & questionnaires: Red - action needed from user Yellow - in progress Green - action complete (document = read, questionnaires = complete)
Prescriptions
Group level:
Item level:
Please add any other screenshots if others are being used - thank you
Rationale & guidance migrated from the NHS App Figma file
What
Use this issue to discuss the NHS App tag component.
Related
NHS design system guidance NHS design system discussion GOV.UK Design System guidance GOV.UK Design System discussion
Examples on the NHS App
Examples
![Image](https://github.com/nhsuk/nhs-app-redesign-prototype/assets/14331000/7658ad52-4318-48ee-b10e-1de8ae0ee555) ![Image](https://github.com/nhsuk/nhs-app-redesign-prototype/assets/14331000/94322e66-bbc7-4546-b24d-5fd7c809eea4) ![Image](https://github.com/nhsuk/nhs-app-redesign-prototype/assets/14331000/d926af07-c869-4be3-ad78-6525eeee2175) ![Image](https://github.com/nhsuk/nhs-app-redesign-prototype/assets/14331000/18d974e0-7204-45f8-9e48-9d169c798b00)Journeys found on
Notes
The GOV.UK Design System team have recently made some tag design changes to improve the accessibility and readability of the tag text.