Open davidhunter08 opened 8 months 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
What
Use tags to show a status.
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.
Progress
Design checklist
Development criteria