pulibrary / pulfalight

This is an implementation of the Princeton University Library Finding Aids (PULFA) service using ArcLight
Other
7 stars 1 forks source link

Improve contrast in yellow Access Restrictions badges #1373

Closed ccleeton closed 4 months ago

ccleeton commented 8 months ago

Users are not seeing the access badges change color or opacity?

Success Criteria

Implementation Tips

We can change the colors like so:

Current colors (failing): Background: #FCECBD Foreground: #f3c560

Passing colors: Background: #FCECBD Foreground: #8B640E

First Step

Search in the codebase for the current colors.

ccleeton commented 5 months ago

This work would have a high impact on users and staff knowing the level of restriction with potentially a low effort from DLS.

sdellis commented 5 months ago

The contrast for the text on the badge vs. the background must be 4.5:1

We can check that here: https://webaim.org/resources/contrastchecker/

Current colors (failing): Background: #FCECBD Foreground: #f3c560

Passing colors: Background: #FCECBD Foreground: #8B640E

We may want to play with the colors, but the main priority is to have passing contrast.

sdellis commented 5 months ago

Example: https://findingaids.princeton.edu/catalog/C1491

Screenshot: Screenshot 2024-05-03 at 10 07 33 AM