nhsuk / nhsapp-frontend

NHS App specific styles on top of nhsuk-frontend
https://design-system.nhsapp.service.nhs.uk/
MIT License
6 stars 0 forks source link

Tag #11

Open davidhunter08 opened 1 year ago

davidhunter08 commented 1 year ago

What

Use this issue to discuss the NHS App tag component.

Image

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.

davidhunter08 commented 11 months ago

GOV.UK tag component update:

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.

davidhunter08 commented 11 months ago

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.

michaelgallagher commented 11 months ago

@davidhunter08 so would that apply to the edges of cards too? (thinking about the "keyline or no?" question)

growe88 commented 9 months ago

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:

  1. 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)

  2. 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.

Screenshot 2024-02-08 at 10 36 31
michaelgallagher commented 9 months ago

@growe88

  1. do we know how often this happens?
  2. is the entire card clickable? (it should be) and if so: does this matter? (meaning: if a user thinks the tag is clickable, and the result is that they click it and go to the next page ... well, that is what was supposed to happen, right?)
  3. Aligning with the changes rolled out by GDS recently makes sense to me!
  4. Does this need to be a tag? Would the words "action needed" in red do the job?
davidhunter08 commented 8 months ago

Example from Hackney Council

https://design-system.hackney.gov.uk/components/tag

Tosin-Balogun commented 6 months ago

Prescription and medicines use tag to tell status of an prescription order

Image

joejulier-nhs commented 3 months ago

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.

Image

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

  1. Using purple/blue status tags for different but similar statuses may simply be introducing more complexity for users without much obvious need/benefit.
  2. When using status tags it's important to think about exactly what information the status relates to and make sure the connection between those things is visually clear.
zachrigby-nhs commented 3 months ago

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'.

Screenshot Screenshot Screenshot

Interestingly, this might be the first case of a user-applied tag?

maxrickards commented 2 months ago

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 image (1)

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) Screenshot 2024-07-31 at 15 21 52 Screenshot 2024-07-31 at 15 25 28

Prescriptions

Group level: image

Item level: image (2)

Please add any other screenshots if others are being used - thank you

anna-rigo commented 2 weeks ago

Rationale & guidance migrated from the NHS App Figma file

Image

Screenshot