From f26992033035cbb17077b6e546eb74544f089c6c Mon Sep 17 00:00:00 2001 From: "opensearch-trigger-bot[bot]" <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Date: Fri, 1 Sep 2023 12:04:52 -0700 Subject: [PATCH] Change color fn used to calculate icon colors for search typeahead suggestions (#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 b24f33aa581088dc0acedf75e9dbb79074c4340b) Signed-off-by: Josh Romero Signed-off-by: github-actions[bot] Co-authored-by: github-actions[bot] --- src/plugins/data/public/ui/typeahead/_suggestion.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/data/public/ui/typeahead/_suggestion.scss b/src/plugins/data/public/ui/typeahead/_suggestion.scss index 2accf9a31c7a..ef14e8f2e31f 100644 --- a/src/plugins/data/public/ui/typeahead/_suggestion.scss +++ b/src/plugins/data/public/ui/typeahead/_suggestion.scss @@ -102,7 +102,7 @@ $osdTypeaheadTypes: ( &.osdSuggestionItem--#{$name} { .osdSuggestionItem__type { background-color: tintOrShade($color, 90%, 50%); - color: makeHighContrastColor($color, tintOrShade($color, 90%, 50%)); + color: makeGraphicContrastColor($color, tintOrShade($color, 90%, 50%)); } } }