osuresearch / ui

Ohio State Research UI
https://osuresearch.github.io/ui/main
MIT License
6 stars 3 forks source link

`Filters.Active` badges do not meet color contrast requirements #88

Closed McManning closed 1 year ago

McManning commented 1 year ago

• Element has insufficient color contrast of 3.03 (foreground color: #ffffff, background color: #1aaa55, font size: 9.0pt (12px), font weight: normal). Expected contrast ratio of 4.5:1 • WCAG 1.4.3 Contrast (Minimum) • Recommendation: Darken the text to meet the requirement.

helloLilyX commented 1 year ago

The background color showed as #757575 in .badge-secondary { color: #fff; background-color: #757575; }

McManning commented 1 year ago

I misreported this one - it's not the badge component but the Filters.Active badges:

image

If you go to the search components example and select some states as filters, some badges will appear. Those are the active filter components:

https://osuresearch.github.io/ui/v4/#/Search%20Components?id=section-filters

McManning commented 1 year ago

This is also specifically a problem with the hover state for them: image

github-actions[bot] commented 1 year ago

:tada: This issue has been resolved in version 4.9.1 :tada:

The release is available on:

Your semantic-release bot :package::rocket: