Open PhilippeOberti opened 3 days ago
Pinging @elastic/security-threat-hunting (Team:Threat Hunting)
Pinging @elastic/security-solution (Team: SecuritySolution)
Pinging @elastic/security-threat-hunting-investigations (Team:Threat Hunting:Investigations)
Context
Changes are made to EUI that will be visible to end-users in Kibana:
See parent ticket for how to use the new theme and labels to add to the PR for tracking
Description
All usage of color palette tokens and functions now pull from the theme, and correctly update to use new colors when the theme changes from Borealis to Amsterdam and vice versa.
https://eui.elastic.co/#/utilities/color-palettes
Vis color tokens are now available through the EUI theme:
euiTheme.colors.vis
:These were not previously part of the theme. This means that they would not change when the theme was changed. They are now part of the theme and should change when the theme is changed.
If you were using any of the above tokens directly, please change your code to pull them directly from
euiTheme.colors.vis
.If you were using any of our color palette functions:
EuiProvider
context and is hence connected to rerender (called on rerender or connected to a state)EuiProvider
context you can use the newEUI_VIS_COLOR_STORE.subscribe()
function to listen to changes and update usages manually