mysociety / theyworkforyou

Keeping tabs on the UK's parliaments and assemblies
http://www.theyworkforyou.com/
Other
224 stars 50 forks source link

Button contrast colours are not accessible #1789

Open lucascumsille opened 2 months ago

lucascumsille commented 2 months ago

I know this is part of a wider discussion about our colours across all our websites and applies not only to the buttons but other sections as well. But I'm raising this issue because I think we could add an easy provisory fix to improve the experience.

Image

While we figure a permanent solution, we could add the following fixes:

This is how it would look:

Image

@ajparsons let me know if this sounds ok with you and I'll go ahead.

ajparsons commented 2 months ago

Cool, these are fine except for the search button.

If you scroll down on the homepage you get the big search box - here black text works fine because it's black > green > black.

But at the top, white > green > black seem very low contrast.

Why can't we just defer to the bootstrap colours here? https://getbootstrap.com/docs/5.0/components/buttons/ That seems to be doing the same job ok.

In general I'd be really good to some proper time thinking about the general picture - I'm still not wild about the black on green in the big text on the homepage (https://github.com/mysociety/theyworkforyou/pull/1699) but it was the quicker fix at the time.