From ee84cb99754914a2a5d2fc514ea50400acf26d35 Mon Sep 17 00:00:00 2001 From: "opensearch-trigger-bot[bot]" <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Date: Mon, 26 Jun 2023 15:36:37 -0700 Subject: [PATCH] Refactor hardcode color to use OUI in `maps_legacy` (#4294) (#4391) * Refactor color to use OUI * Pull theme value from actual active theme * Update changelog --------- Signed-off-by: Matt Provost Signed-off-by: Josh Romero Co-authored-by: Anan Zhuang Co-authored-by: Josh Romero (cherry picked from commit 0b54e843107b9c75cf142711347e288d86310f26) Signed-off-by: github-actions[bot] # Conflicts: # CHANGELOG.md Co-authored-by: github-actions[bot] --- .../maps_legacy/public/map/opensearch_dashboards_map.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/maps_legacy/public/map/opensearch_dashboards_map.js b/src/plugins/maps_legacy/public/map/opensearch_dashboards_map.js index 3ca067c27796..6f4af0e47c17 100644 --- a/src/plugins/maps_legacy/public/map/opensearch_dashboards_map.js +++ b/src/plugins/maps_legacy/public/map/opensearch_dashboards_map.js @@ -41,6 +41,7 @@ import { i18n } from '@osd/i18n'; import { ORIGIN } from '../common/constants/origin'; import { getToasts } from '../opensearch_dashboards_services'; import { L } from '../leaflet'; +import { euiThemeVars } from '@osd/ui-shared-deps/theme'; function makeFitControl(fitContainer, opensearchDashboardsMap) { // eslint-disable-next-line no-undef @@ -474,7 +475,7 @@ export class OpenSearchDashboardsMap extends EventEmitter { } addDrawControl() { - const drawColor = '#000'; + const drawColor = euiThemeVars.euiColorInk; const drawOptions = { draw: { polyline: false,