-
Notifications
You must be signed in to change notification settings - Fork 915
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 color fn used to calculate icon colors for search typeahead #4884
Merged
ashwin-pc
merged 1 commit into
opensearch-project:main
from
joshuarrrr:fix/fix-typeahead-contrast
Aug 31, 2023
Merged
Change color fn used to calculate icon colors for search typeahead #4884
ashwin-pc
merged 1 commit into
opensearch-project:main
from
joshuarrrr:fix/fix-typeahead-contrast
Aug 31, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…ggestions Icons don't need to be as high contrast as text, so the 3:1 threshold of `makeGraphicContrastColor` is more appropriate Signed-off-by: Josh Romero <[email protected]>
joshuarrrr
requested review from
ananzh,
kavilla,
seanneumann,
AMoo-Miki,
ashwin-pc,
abbyhu2000,
zengyan-amazon,
kristenTian,
zhongnansu,
manasvinibs,
ZilongX,
Flyingliuhub,
BSFishy and
curq
as code owners
August 31, 2023 21:38
joshuarrrr
added
backport 2.x
Skip-Changelog
PRs that are too trivial to warrant a changelog or release notes entry
labels
Aug 31, 2023
This doesn't need a changelog entry - it's really just getting rid of a sass bundling warning. |
AMoo-Miki
approved these changes
Aug 31, 2023
manasvinibs
approved these changes
Aug 31, 2023
Codecov Report
@@ Coverage Diff @@
## main #4884 +/- ##
==========================================
- Coverage 66.39% 66.39% -0.01%
==========================================
Files 3396 3396
Lines 64801 64801
Branches 10359 10359
==========================================
- Hits 43025 43023 -2
- Misses 19217 19218 +1
- Partials 2559 2560 +1
Flags with carried forward coverage won't be shown. Click here to find out more. |
opensearch-trigger-bot bot
pushed a commit
that referenced
this pull request
Aug 31, 2023
…ggestions (#4884) Icons don't need to be as high contrast as text, so the 3:1 threshold of `makeGraphicContrastColor` is more appropriate Signed-off-by: Josh Romero <[email protected]> (cherry picked from commit b24f33a) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
6 tasks
AMoo-Miki
pushed a commit
that referenced
this pull request
Sep 1, 2023
…ggestions (#4884) (#4886) Icons don't need to be as high contrast as text, so the 3:1 threshold of `makeGraphicContrastColor` is more appropriate (cherry picked from commit b24f33a) Signed-off-by: Josh Romero <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
backport 2.x
distinguished-contributor
Skip-Changelog
PRs that are too trivial to warrant a changelog or release notes entry
v2.10.0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Icons don't need to be as high contrast as text, so the 3:1 threshold of
makeGraphicContrastColor
is more appropriateIssues Resolved
fixes #4628
Screenshot
These styles aren't actually currently used, because we don't have full typeahead support available in the query bar, except for historical queries. But I've manually updated some of the suggestions with the 4 color style classes affected by this change. The colors themselves haven't changed, but it fixes the error. Note that this change is only for the color variants - the contrast for the grayscale ones are probably worse, but defined elsewhere:
Testing the changes
Before:
After:
Check List
yarn test:jest
yarn test:jest_integration
yarn test:ftr