From 08da9468b28afdad386b91a26507cd45e1c85098 Mon Sep 17 00:00:00 2001 From: Marco Antonio Ghiani Date: Thu, 12 Dec 2024 18:01:49 +0100 Subject: [PATCH] [One Discover] Revert token change from vis palette (#204054) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## 📓 Summary Related to https://github.com/elastic/kibana/pull/202985 This change reverts a suggestion that was applied but that should only be valid for v9. Co-authored-by: Marco Antonio Ghiani --- .../src/data_types/logs/utils/get_log_level_color.test.ts | 4 +--- .../src/data_types/logs/utils/get_log_level_color.ts | 4 ++-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/packages/kbn-discover-utils/src/data_types/logs/utils/get_log_level_color.test.ts b/packages/kbn-discover-utils/src/data_types/logs/utils/get_log_level_color.test.ts index d5d76ddb6041d..fcbf7848603a9 100644 --- a/packages/kbn-discover-utils/src/data_types/logs/utils/get_log_level_color.test.ts +++ b/packages/kbn-discover-utils/src/data_types/logs/utils/get_log_level_color.test.ts @@ -13,9 +13,7 @@ import { LogLevelCoalescedValue } from './get_log_level_coalesed_value'; const euiTheme = { colors: { - vis: { - euiColorVisGrey0: '#d3dae6', - }, + mediumShade: '#d3dae6', }, }; diff --git a/packages/kbn-discover-utils/src/data_types/logs/utils/get_log_level_color.ts b/packages/kbn-discover-utils/src/data_types/logs/utils/get_log_level_color.ts index b51318a570923..1418ae7f10f45 100644 --- a/packages/kbn-discover-utils/src/data_types/logs/utils/get_log_level_color.ts +++ b/packages/kbn-discover-utils/src/data_types/logs/utils/get_log_level_color.ts @@ -25,7 +25,7 @@ export const getLogLevelColor = ( switch (logLevelCoalescedValue) { case LogLevelCoalescedValue.trace: - return euiTheme.colors.vis.euiColorVisGrey0; + return euiTheme.colors.mediumShade; case LogLevelCoalescedValue.debug: return euiPaletteForTemperature6[2]; // lighter, closer to the default color for all other unknown log levels case LogLevelCoalescedValue.info: @@ -45,6 +45,6 @@ export const getLogLevelColor = ( case LogLevelCoalescedValue.fatal: return euiPaletteRed9[13]; default: - return euiTheme.colors.vis.euiColorVisGrey0; + return euiTheme.colors.mediumShade; } };