The foreground color of status badge warning does not have enough contrast with background.
Steps to reproduce the behavior:

Clarity: v4.0.5
@karan-kang thank you for reporting this. We gonna try to add this issue in our next A11y bug fixes round.
I've noticed some more changes on the badge coloring from v3 to v4.
The release changelog does not list any badge-related changes, so I'm wondering if the new colors are intended or if this is a side effect from another change?
| V3 https://v3.clarity.design/badges | V4 https://clarity.design/documentation/badges |
|
.badge-orange: #efc006; .badge-light-blue: #79c6e6; .badge-4: #efc006; .badge-5: #79c6e6; .badge-info: #0072a3; .badge-success: #3c8500; .badge-warning: #fee272; .badge-danger: #c21d00; |
.badge-orange: #613200; .badge-light-blue: #179bd3; .badge-4: #613200; .badge-5: #179bd3; .badge-info: #00567a; .badge-success: #306b00; .badge-warning: #613200; .badge-danger: #991700; |
|
|
Also notice that .badge-orange and .badge-light-blue now have white text instead of black.
@erabl-identos
These changes were intentional. They are to improve the accessibility (color contrast) of the badges.
Thanks for the clarification.
@colinreedmiller can you please review the shown badge colors (warning especially) and give us the expected background/font color definitions.
Thank you.
These changes were intentional. They are to improve the accessibility (color contrast) of the badges.
Warning badge is almost unreadable, how does it improve something? And brown color for warning is also strange.
These changes were intentional. They are to improve the accessibility (color contrast) of the badges.
Warning badge is almost unreadable, how does it improve something? And brown color for warning is also strange.
Scott's comment was about the other minor differences, mentioned in the other comments above. The warning badge is obviously wrong. We're waiting for feedback from UX with the correct colors.
Any news from the UX team? Orange is not orange anymore, more like brown.
Feedback after my last talks with UX:
Due to accessibility color contrast requirements, this is the background color accepted as warning in Clarity Core:
See here: https://clarity.design/storybook/core/?path=/story/components-badge-stories--status
Synchronizing with them lead to this issue, as we still need to update our font color. We shouldn't mix light over dark with dark over light in the same component, as we initially did.
The fix here is to make the text white. The color contrast of text on orange is pretty hard to work out for accessibility requirements, hence the brownish color. This is only Clarity UI.
Hi there 馃憢, this is an automated message. To help Clarity keep track of discussions, we automatically lock closed issues after 14 days. Please look for another open issue or open a new issue with updated details and reference this one as necessary.