govuk-design-system-backlog icon indicating copy to clipboard operation
govuk-design-system-backlog copied to clipboard

Colour

Open govuk-design-system opened this issue 7 years ago • 23 comments
trafficstars

Use this issue to discuss this style in the GOV.UK Design System.

govuk-design-system avatar Jan 12 '18 13:01 govuk-design-system

Looks like the colour page is missing the button colour. Can create an issue, but didn't know whether this was a deliberate choice or mistake.

owenm6 avatar Jun 26 '18 17:06 owenm6

Talking about which colours contrast well with each other:

x-gov chat:

It would be nice if they listed the acceptable combinations to save you and everyone else testing them yourselves

NickColley avatar Jul 13 '18 11:07 NickColley

Assuming there aren't too many colours in the overall palette, it would be best to show all possible allowable combinations

accessiblewebuk avatar Jul 17 '18 09:07 accessiblewebuk

alternatively use the function for everything, either way you don't have to think about which method to use for which colour:

govuk-colour('error')
govuk-colour('focus')
govuk-colour('black')

I wonder if the variable name approach is just more expected to our users.

joelanman avatar Jul 19 '18 08:07 joelanman

After using the colour palette I'm wondering if all the colours should be mapped to a variable name?

As this is an implementation detail, would you mind moving this discussion to an issue on the Frontend repo?

36degrees avatar Jul 19 '18 12:07 36degrees

There is an issue with $grey-4 (f8f8f8) in that it doesn't show up at all under compression. So all of our DWP equipment that our staff use essentially stream a desktop from a server somewhere and grey-4 just shows as white. The issue came to light when testing the tab component as the background colour of the tabs is grey-4 and doesn't show up at all. I have raised this issue in #100 also. Is there a need for grey-4 at all? Unlike the govuk-blue and link-colour etc there seems to be no semantic use for grey-4. So I wonder if it needs a warning or to be removed so people don't add it to their design and unknowingly introduce usability issues.

abbott567 avatar Aug 07 '18 09:08 abbott567

#a1acb2 - used for footer top border - doesn't seem to be defined anywhere as a variable. Can anyone enlighten me please?

tribute3108 avatar Aug 07 '18 11:08 tribute3108

Like @owenm6, I'm wondering why the button green is missing from the colours list.

#00823b is missing. There is only a dark green, #006435.

fofr avatar Sep 04 '18 09:09 fofr

We had an accessibility review on a service we launched at Crown Commercial Service, where they flagged and failed the contrast between the focus colour (yellow) #FFBF47 and background colour (white) #FFFFFF; citing the ratio should be 3:1 (currently its 1.6:1).

Worth noting that there were no strong complaints from users during testing though.

alaricking avatar Jan 16 '19 10:01 alaricking

@alaricking thanks for letting us know, we're doing some work on that very soon: https://github.com/alphagov/govuk-frontend/issues/1137

NickColley avatar Jan 16 '19 10:01 NickColley

I think the link to the Organisation colour file needs updating? The Colours page at https://design-system.service.gov.uk/styles/colour/ has a link to https://github.com/alphagov/govuk-frontend/blob/master/src/settings/_colours-organisations.scss that throws a 404. It looks like the link should be https://github.com/alphagov/govuk-frontend/blob/master/src/govuk/settings/_colours-organisations.scss.

  • Old: https://github.com/alphagov/govuk-frontend/blob/master/src/settings/_colours-organisations.scss
  • New: https://github.com/alphagov/govuk-frontend/blob/master/src/govuk/settings/_colours-organisations.scss

benchilds avatar Jun 24 '19 20:06 benchilds

Thanks for pointing that out, @benchilds – I've raised an issue for it.

36degrees avatar Jun 25 '19 08:06 36degrees

@benchilds the broken link has now been fixed – thanks again.

36degrees avatar Jun 26 '19 11:06 36degrees

In addition to @alaricking's comment above we've had the results back from our DAC (Digital Accessibility Centre) report and there was a problem raised by them regarding our focus colour choice.

To quote the report directly:

Medium priority

Low colour contrast ratio (focus indicator) The focus indicator fails colour contrast

WCAG Reference:

Success Criterion 1.4.11 Non-text Contrast (Level AA)

Understanding Non-text Contrast | How to Meet Non-text Contrast

Issue ID: DAC- Low colour contrast ratio (focus indicator) Screen Shot:

Screenshot 2019-07-23 at 12 36 55

The current visible focus indicator colour does not meet the required ratio of 3:1 for AA standard. This may be problematic for visually impaired users. The current ratio is 1.64:1. This is consistent throughout the service where this colour has been used as the focus indicator.

Code ref(s)

Colour contrast analyst comments: “The color combination found for the link highlighting mechanism did not pass the ratio of 3:1 against adjacent colours.”

Solution

Ensure the colour contrast ratio for adjacent colour meet the minimum required ratio of 3:1.

peteryates avatar Jul 23 '19 11:07 peteryates

Hi @peteryates

Thanks for your comment. I work in the GOV.UK Design System team

We are aware of this issue and are currently making a number of changes to the Design System and Frontend to make sure it's WCAG 2.1 AA compliant. We'll be releasing an update containing these changes within the next week.

If you can hold fire until then, the new version should fix your issues. If you need any help with updating, you can get in touch with the team on #govuk-design-system on Slack or by emailing [email protected]

I hope that helps.

Amy

amyhupe avatar Jul 23 '19 13:07 amyhupe

Yesterday I observed a user research session with a member of DWP staff who has dyslexia and problems with short-term memory. She said she finds it very difficult to read text on a white background (her words: "it jumbles everything up for me") and much prefers grey. She specifically mentioned the grey background we use in the footer of gov.uk pages as being much clearer for her.

emma-cuthbert avatar Mar 16 '22 12:03 emma-cuthbert

The Home Office Design System, which is used for internal products, uses a grey background for this reason. (Source: https://design.homeoffice.gov.uk/styles/colour)

tomyems avatar Mar 16 '22 14:03 tomyems

The NHS design system uses a pale grey background because:

  • it reduces overall page glare
  • the British Dyslexia Association recommends dark text on a light, but not white, background
  • components with important information, like callouts, stand out

(NHS design system colour page)

sarawilcox avatar Mar 16 '22 14:03 sarawilcox

Would it be possible to add tints and shades like the USWDS?

image

jlarmstrongiv avatar Apr 01 '22 22:04 jlarmstrongiv

@jlarmstrongiv sorry for the delay, it would be good to know about what context users need it in - can you share any details?

joelanman avatar Apr 07 '22 11:04 joelanman

@joelanman sure, here is a previous discussion on the topic https://github.com/uswds/uswds/issues/2255 I’m curious what you think

jlarmstrongiv avatar Apr 08 '22 05:04 jlarmstrongiv

Having lighter and darker shades of our colour palette will be necessary if and when we get around to tackling #177, though whether we provide a full gamut of colours or only tweak the ones that need tweaking is not something that's been discussed yet.

Relatedly, we already use darkened shades of departmental colours when we need to provide sufficient contrast for text on white.

querkmachine avatar Apr 08 '22 08:04 querkmachine