Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Charts] Fix borealis theme overrides #209595

Merged
merged 2 commits into from
Feb 4, 2025
Merged

[Charts] Fix borealis theme overrides #209595

merged 2 commits into from
Feb 4, 2025

Conversation

nickofthyme
Copy link
Contributor

@nickofthyme nickofthyme commented Feb 4, 2025

Summary

This removes an override that was applied to the charts theme prior to updating the Theme in @elastic/charts. This is no longer needed and is now using the wrong color.

Fixes #209596

Zight.Recording.2025-02-04.at.11.14.44.AM.mp4

Checklist

  • Unit or functional tests were updated or added to match the most common scenarios
  • The PR description includes the appropriate Release Notes section, and the correct release_note:* label is applied per the guidelines

Release note

Fixes issue with Amsterdam theme where charts render with the incorrect background color.

@nickofthyme nickofthyme added release_note:fix Team:Visualizations Visualization editors, elastic-charts and infrastructure Feature:Lens labels Feb 4, 2025
@nickofthyme nickofthyme marked this pull request as ready for review February 4, 2025 17:16
@nickofthyme nickofthyme requested a review from a team as a code owner February 4, 2025 17:16
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-visualizations (Team:Visualizations)

@nickofthyme nickofthyme added backport:prev-minor Backport to (9.0) the previous minor version (i.e. one version back from main) backport:current-major Backport to all previous minor branches labels Feb 4, 2025
@nickofthyme nickofthyme enabled auto-merge (squash) February 4, 2025 17:24
@nickofthyme nickofthyme merged commit 5954061 into main Feb 4, 2025
13 checks passed
@nickofthyme nickofthyme deleted the fix-theme-bg-color branch February 4, 2025 18:54
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 9.0

https://github.com/elastic/kibana/actions/runs/13142760942

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
charts 43.6KB 43.5KB -160.0B

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Feb 4, 2025
## Summary

This removes an override that was applied to the charts theme prior to
updating the `Theme` in `@elastic/charts`. This is no longer needed and
is now using the wrong color.

## Release note

Fixes issue with `Amsterdam` theme where charts render with the
incorrect background color.

(cherry picked from commit 5954061)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
9.0

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Feb 4, 2025
# Backport

This will backport the following commits from `main` to `9.0`:
- [[Charts] Fix borealis theme overrides
(#209595)](#209595)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Nick
Partridge","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-02-04T18:54:19Z","message":"[Charts]
Fix borealis theme overrides (#209595)\n\n## Summary\r\n\r\nThis removes
an override that was applied to the charts theme prior to\r\nupdating
the `Theme` in `@elastic/charts`. This is no longer needed and\r\nis now
using the wrong color.\r\n\r\n## Release note\r\n\r\nFixes issue with
`Amsterdam` theme where charts render with the\r\nincorrect background
color.","sha":"595406176fd82b3e0c1ce967d8a801e428e0e94a","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:Visualizations","Feature:Lens","backport:prev-minor","backport:current-major","v9.1.0"],"title":"[Charts]
Fix borealis theme
overrides","number":209595,"url":"https://github.com/elastic/kibana/pull/209595","mergeCommit":{"message":"[Charts]
Fix borealis theme overrides (#209595)\n\n## Summary\r\n\r\nThis removes
an override that was applied to the charts theme prior to\r\nupdating
the `Theme` in `@elastic/charts`. This is no longer needed and\r\nis now
using the wrong color.\r\n\r\n## Release note\r\n\r\nFixes issue with
`Amsterdam` theme where charts render with the\r\nincorrect background
color.","sha":"595406176fd82b3e0c1ce967d8a801e428e0e94a"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/209595","number":209595,"mergeCommit":{"message":"[Charts]
Fix borealis theme overrides (#209595)\n\n## Summary\r\n\r\nThis removes
an override that was applied to the charts theme prior to\r\nupdating
the `Theme` in `@elastic/charts`. This is no longer needed and\r\nis now
using the wrong color.\r\n\r\n## Release note\r\n\r\nFixes issue with
`Amsterdam` theme where charts render with the\r\nincorrect background
color.","sha":"595406176fd82b3e0c1ce967d8a801e428e0e94a"}}]}]
BACKPORT-->

Co-authored-by: Nick Partridge <[email protected]>
@nickofthyme
Copy link
Contributor Author

@markov00 where else should be backport this to?

@markov00
Copy link
Member

markov00 commented Feb 5, 2025

I don't believe we need to merge it in 8.x because borealis changes are applied only to 9.x branch as recommended here #199715 (comment)

The most important thing is to consider every fix on elastic-charts that needs to be in 8.x to be backported to 68.x before being merged into 8.x

drewdaemon pushed a commit to drewdaemon/kibana that referenced this pull request Feb 6, 2025
## Summary

This removes an override that was applied to the charts theme prior to
updating the `Theme` in `@elastic/charts`. This is no longer needed and
is now using the wrong color.

## Release note

Fixes issue with `Amsterdam` theme where charts render with the
incorrect background color.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:current-major Backport to all previous minor branches backport:prev-minor Backport to (9.0) the previous minor version (i.e. one version back from main) Feature:Lens release_note:fix Team:Visualizations Visualization editors, elastic-charts and infrastructure v9.0.0 v9.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Chart] The charts plugin return incorrect background color for Amsterdam
4 participants