Skip to content

Commit

Permalink
[Discover]: Make colour of discover histogram match theme (#9405)
Browse files Browse the repository at this point in the history
* [Discover]: Make color of discover histogram match theme

Signed-off-by: Joey Liu <[email protected]>

* Changeset file for PR #9405 created/updated

---------

Signed-off-by: Joey Liu <[email protected]>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
(cherry picked from commit 22d8063)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
1 parent 027837b commit 934814f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions changelogs/fragments/9405.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
chore:
- Make colour of discover histogram match theme ([#9405](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/9405))
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,8 @@ export class DiscoverHistogram extends Component<DiscoverHistogramProps, Discove
chartsTheme.axes!.axisTitle = {
fill: euiThemeVars.euiTextColor,
};
chartsTheme.colors = chartsTheme.colors ?? {};
chartsTheme.colors.vizColors = [euiThemeVars.euiColorVis1_behindText];

Check warning on line 320 in src/plugins/discover/public/application/components/chart/histogram/histogram.tsx

View check run for this annotation

Codecov / codecov/patch

src/plugins/discover/public/application/components/chart/histogram/histogram.tsx#L320

Added line #L320 was not covered by tests

return (
<Chart size="100%">
Expand Down

0 comments on commit 934814f

Please sign in to comment.