-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Fix color of disabled buttons in dark toolbar #67348
Conversation
d0f3ff6
to
9bb442f
Compare
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Size Change: +30 B (0%) Total Size: 1.82 MB
ℹ️ View Unchanged
|
Do we use a low opacity in other contexts? I guess not, no, but it might have been nice to use opacities here, as it would work across any theme color. That could be something to explore in the future, where a 3rd party component consumer might feed a different color primary button into the system. |
Thanks for the review!
There doesn't seem to be a consistent rule on this within the Gutenberg project. For now, the dark toolbar background color is fixed at I'd like to merge this PR, but will address it in a follow-up if necessary. |
Co-authored-by: t-hamano <[email protected]> Co-authored-by: jasmussen <[email protected]>
Co-authored-by: t-hamano <[email protected]> Co-authored-by: jasmussen <[email protected]>
Follow up #66116
What?
Provides visual differentiation between disabled buttons on dark toolbars.
Why?
Regardless of whether the button is enabled or disabled, the color remains the same (
$gray-300
), making it visually impossible to tell whether the button is disabled or not.How?
I chose
$gray-700
, but the color we chose is up for debate.If the color is too dark it will blend in with the background color, and if the color is too light it will be indistinguishable from a normal button. If none of the colors are suitable, we can also apply opacity instead of color.
$gray-800
$gray-700
$gray-600
$gray-400
Testing Instructions
Screenshots or screencast
Before
After