-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update green to pass 4.5:1 #30972
Update green to pass 4.5:1 #30972
Conversation
It's so dark. 😭 Is this the bare minimum to hit 4.5, or does this go past it a bit? I'd like to take as much as I can on the lightness/vibrancy of it since green is such a difficult color to get right. |
I'll try to suggest a few other greens. 4.5 is the minimum indeed, but playing with hue or saturation it should be possible to get a lighter green. I only used this as a startong point, this is the simpler variant to try since we already have it 😄 |
Yeah, I agree, the button looks like it's pressed. Here are some alternative colors, but as expected, they are all darker: https://contrast-finder.tanaguru.com/result.html?foreground=%23FFFFFF&background=%2328A745&ratio=4.5&isBackgroundTested=true&algo=Rgb&distanceSort=asc |
BTW, is the white text color a requirement? Switching to dark or black would allow us to keep existing green. |
Kinda? I like the consistency but I’d be open to dark text since we have that for our warning buttons. |
I'm trying another green: FWIW, here's a great link to see how complicated it is to improve the current green: https://color.review/check/28A745-FFFFFF Either playing with, hue, sturation or lightness gives us weird greens. FYI to get dark text on success, it'll require to increase the
One thing to consider is also to switch between This makes sense for every hoverable colored background, I guess. |
135e2cc
to
7a80e27
Compare
Still thinking out loud: if #30989 is accepted, then changing the green might not be valuable anymore. The issue in #30468 was that foreground color changed on hover: that was because we always darkened the background, and got the foreground by using @mdo if this makes sense, we should consider to simply close this one and keep the current green and cyan. Just notice that the current green with a dark text color is not very happy, IMHO. We may end up lightening it :D |
Closing this since it's tackled with #31276 🎉 |
On the road to #30548, and as mentionned in #30468, our current
$green
is not contrasted enough.My first attempt was too far from other colors, so here's another one (and this PR will only try those greens). I tried to keep consistency by using the current
.btn-success
hover color, so this is basically the current green darkened from 7.5%.Preview in color swatches — Preview in buttons