Skip to content

Commit

Permalink
Refactor hardcode color to use OUI in maps_legacy (#4294) (#4391)
Browse files Browse the repository at this point in the history
* Refactor color to use OUI
* Pull theme value from actual active theme
* Update changelog

---------

Signed-off-by: Matt Provost <[email protected]>
Signed-off-by: Josh Romero <[email protected]>
Co-authored-by: Anan Zhuang <[email protected]>
Co-authored-by: Josh Romero <[email protected]>
(cherry picked from commit 0b54e84)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

# Conflicts:
#	CHANGELOG.md

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
1 parent 578e86e commit ee84cb9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -474,7 +475,7 @@ export class OpenSearchDashboardsMap extends EventEmitter {
}

addDrawControl() {
const drawColor = '#000';
const drawColor = euiThemeVars.euiColorInk;
const drawOptions = {
draw: {
polyline: false,
Expand Down

0 comments on commit ee84cb9

Please sign in to comment.