-
Notifications
You must be signed in to change notification settings - Fork 46
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
Button component associated colors are inconsistent. #262
Comments
Yeah, the button colors went through many iterations recently:
So it might be a good idea to take a closer look at the button colors to see if they can be improved or aligned to the system more.
Maybe it needs to be a combination of both. Especially for the Another tricky part is that for things like hover/active/selected states, the difference should be minimal compared to the default state. And using functional/global variables might not work for these cases because the difference is too big. I think @mperrotti brought up a similar issue when working on the states for So currently color functions like So yeah, we could see if any of the functional/global variables would work, but my guess is that we still need a few colors specific to buttons and all their different states. |
This came up in primer/view_components#1712. A nested Possible options for
|
I noticed a few issues with the colors in the
btn
section of component themes.activeBg
is only available for the default button and not for primary etchoverBg
anddisabledBg
selectedShadow: (theme: any) =>
inset 0 1px 0 ${alpha(get('scale.green.9'), 0.2)(theme)},
how do we determine the alpha value?With this issue, I wonder if it possible to either
btn
component colors and directly use functional color variables. ORbtn
component colors robust and work for all scenarios.cc - @ashygee, @colebemis
The text was updated successfully, but these errors were encountered: