alphagov / govuk_template

❗️GOV.UK Template is deprecated, and will only receive major bug fixes and security patches. A template containing the GOV.UK header and footer, and associated assets.

Home Page:https://alphagov.github.io/govuk_template/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Focused links have low contrast

cfq opened this issue · comments

Links don't have good contrast against $focus-colour when they're in focus, it's currently 4.07:1. Keyboard users who have low vision would notice them. Screen magnification and keyboard users whose zoom follow keyboard focus would find it hard if they need high contrast.

We can fix it by setting the link colour on focus to be the same as $text-colour.

Current:
screen shot 2016-12-07 at 15 27 17

Proposed:
screen shot 2016-12-07 at 15 26 11

Since it's very close to being acceptable, I wonder if we could just go with a slightly darker version of link colour? The black looks rather different, whereas a darker blue isn't that noticeable.

Example:
screen shot 2016-12-07 at 17 15 52

Edit: might want to pick a colour rather than simply using sass to darken. The darker version is not saturated enough - manually picking we could get colour that perceptually is the same.

The blue and orange isn’t a good colour combination because of chromostereopsis.

I don’t mind the black, but it does cause another problem: it’s impossible to tell whether the currently focused link has been visited.

@trevorsaint has pointed out that the contrast is poor on our service names when focused.

Example:
unnamed

Suggest the solution here is to make the service name black when focused - it then matches the proposition links that are already black.