-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Change inserter search placeholder text color #22444
Change inserter search placeholder text color #22444
Conversation
Size Change: +275 kB (24%) 🚨 Total Size: 1.11 MB
ℹ️ View Unchanged
|
@jasmussen if you don't mind, I would love to have your review this little PR. I couldn't find any other place in the UI where this background and foreground color combination was being used, so what I did was find the color combo that just gets us past the success ratio and added it just to this element. If this color change proposal is acceptable, I'm sure we'd want to be able to re-use it, so probably creating a variable would be best? |
I wish we had a "new gray" for this use case, that is, a color that was created for G2. G2 means to use fewer grays overall, but $medium-gray-text does not meet the contrast ratio here. So for the time being and pending other improvements, seems fine to use a variable from the "old" set. But still important to use a variable, so it's easy to search and replace when we do get a time to revisit. 👍 👍 |
Updated to use |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We will want to revisit the grays again, and therefore also revisit this one.
In the mean time, good to go. Need to run the tests again.
Thank you for the review, @jasmussen! |
Description
This PR changes the placeholder text color on the block inserter's search field from #72777c to #6c6f75. The previous color combination is failing AA success criteria with a ratio of 4.11. New color combination achieves passing score 4.57.
How has this been tested?
Tested on Firefox/macOS. Contrast ratio tested with https://webaim.org/resources/contrastchecker/ and https://contrastchecker.com
Screenshots
Previous (#72777c):
Proposed (#6c6f75):
UPDATE:
Using
$dark-gray-400
(#606A73) instead. We now have a passing 5.01 contrast ratio.Types of changes
Visual, bug fix.
Checklist: