8000 Change background colour on guide page navigation by keelanfh · Pull Request #263 · localgovdrupal/localgov_base · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Change background colour on guide page navigation #263

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Aug 9, 2022

Conversation

keelanfh
Copy link
Member
@keelanfh keelanfh commented Aug 8, 2022

The background colour on guide pages isn't WCAG2.1AA compliant with --color-link (--color-accent) used for links in this block (both in base and Scarfolk, as well as other colours people might commonly choose):

image

I've suggested a fix for this where we set the background colour to --color-grey-lighter, which should give better contrast with a range of colours.

Incidentally, --color-grey-light is actually darker than --color-grey-medium - there might be a good reason for this, but it does seem a bit counterintuitive when you look down the list of CSS variables...

Same change suggested for .service-landing-page__contact for the same reason - the contact box includes email and web addresses which get link styling applied too.

@finnlewis finnlewis requested a review from markconroy August 9, 2022 10:56
@finnlewis
Copy link
Member

Thanks @keelanfh - looks pragmatic to me.

Perhaps @markconroy could you check and merge if all good?

@markconroy
Copy link
Member
markconroy commented Aug 9, 2022

I noticed this myself last week.

I think we should change --color-grey-light to a colour that is lighter than --color-grey-medium for sure.

We fixed this in the scarfollk theme (kind of - at least for the sidebar) by setting the sidebar background colour to --color-grey-lightest instead of --color-grey-light, but let's fix it properly here now instead.

@markconroy
Copy link
Member

@keelanfh do you want to update the PR to also set --color-grey-light to something lighter than the default grey?

Make it halfway between --color-grey-lighter and --color-grey-medium
@keelanfh
Copy link
Member Author
keelanfh commented Aug 9, 2022

@markconroy I've updated that now - from a search, it doesn't look like that variable is used anywhere else, so shouldn't have any implications.

@markconroy markconroy merged commit 69d6271 into localgovdrupal:1.x Aug 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0