From 64c61e04422eba0e66e290c8a82367473de18f42 Mon Sep 17 00:00:00 2001
From: Elena Stoeva <59341489+ElenaStoeva@users.noreply.github.com>
Date: Tue, 30 Jul 2024 18:53:16 +0100
Subject: [PATCH] [Console Monaco] Improve color contrast of selection
highlighting (#189060)
Closes https://github.com/elastic/kibana/issues/186772
## Summary
This PR fixes the color contrast issue with the selection highlighting
in Console Monaco.
Before:
Now:
Note: I changed the request highlighting color from grey to blue
(`euiColorPrimary`) since we are soon starting work on the Console
redesign project, in which the new request highlighting color is blue
(see screenshot from Figma project below). With the blue color, the
contrast seems to be much higher.
Screenshot from Figma project
---------
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
---
src/plugins/console/public/styles/_app.scss | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/plugins/console/public/styles/_app.scss b/src/plugins/console/public/styles/_app.scss
index f2353821ec93fb..161fd913c32ae5 100644
--- a/src/plugins/console/public/styles/_app.scss
+++ b/src/plugins/console/public/styles/_app.scss
@@ -131,7 +131,7 @@
* The highlighting for the selected requests in the monaco editor
*/
.console__monaco_editor__selectedRequests {
- background: transparentize($euiColorLightShade, .3);
+ background: transparentize($euiColorPrimary, .9);
}
/*
* The z-index for the autocomplete suggestions popup