cfpb / design-manual

⚠️ THIS REPO IS DEPRECATED ⚠️ A set of design principles and standards for the Consumer Financial Protection Bureau.
https://cfpb.github.io/design-manual/
Creative Commons Zero v1.0 Universal
98 stars 71 forks source link

Bug: DM header and navigation are not contrast compliant #539

Open nataliafitzgerald opened 6 years ago

nataliafitzgerald commented 6 years ago

In testing out the Lighthouse accessibility tool we realized that the Design Manual header and primary navigation do not have sufficient color contrast. The unselected state for text is set to Gray 60 (not accessible). The unselected state should be set to Gray since this is the lightest Gray we can use on White and remain accessible. This will apply to all pages that use the DOCter template.

https://cfpb.github.io/design-manual/

screen shot 2017-10-24 at 5 38 28 pm

https://eregs.github.io/

screen shot 2017-10-24 at 5 40 02 pm
nataliafitzgerald commented 6 years ago

Recommendations

Header

Current Recommendation
with shaded subsections without shaded subsections

Footer

Current Recommendation
with shaded subsections without shaded subsections
marteki commented 6 years ago

Thanks, @nataliafitzgerald! I checked the recommendation using the WAVE Chrome extension.

Header

The "CFPB Design Manual" text is actually color compliant in its current state, because of its larger text size! If it makes more sense to change its color because the other header unselected text colors are changing, that's cool.

Footer

Great work figuring out the shifts to make so that the existing hover and focus colors for the links become compliant! And also thank you for bringing the general footer closer to our current design guidelines (re: font weight of link lists and general font size and more).

:+1:

nataliafitzgerald commented 6 years ago

@marteki Yeah, I don't think it hurts to go a little darker on the "CFPB Design Manual" text. In the well, it looks like the hover text for links is also not contrast compliant (Pacific 60) so we have some work to do to bring our global link styling up to par. I went ahead and created an issue for that broader problem here: https://github.com/cfpb/design-manual/issues/605.