Skip to content

Commit

Permalink
Refactor hardcode color to use OUI in maps_legacy (#4294)
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 <provomat@amazon.com>
Signed-off-by: Josh Romero <rmerqg@amazon.com>
Co-authored-by: Anan Zhuang <ananzh@amazon.com>
Co-authored-by: Josh Romero <rmerqg@amazon.com>
(cherry picked from commit 0b54e84)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

# Conflicts:
#	CHANGELOG.md
  • Loading branch information
github-actions[bot] committed Jun 26, 2023
1 parent 8db23c9 commit a893755
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;

Check warning on line 478 in src/plugins/maps_legacy/public/map/opensearch_dashboards_map.js

View check run for this annotation

Codecov / codecov/patch

src/plugins/maps_legacy/public/map/opensearch_dashboards_map.js#L478

Added line #L478 was not covered by tests
const drawOptions = {
draw: {
polyline: false,
Expand Down

0 comments on commit a893755

Please sign in to comment.