[ML] EUI Visual Refresh (tokens)#203518
Conversation
b18326f to
63e1448
Compare
63e1448 to
a1ec963
Compare
d186aa6 to
14c4402
Compare
|
Pinging @elastic/ml-ui (:ml) |
...orm/plugins/shared/ml/public/application/components/collapsible_panel/panel_header_items.tsx
Outdated
Show resolved
Hide resolved
x-pack/platform/plugins/shared/ml/public/application/explorer/annotation_timeline.tsx
Outdated
Show resolved
Hide resolved
peteharverson
left a comment
There was a problem hiding this comment.
Tested and visually LGTM - tested Borealis (dark theme) and Amsterdam (light theme).
| icon: 'visMapCoordinate', | ||
| color: 'euiColorVis1_behindText', | ||
| borderColor: 'euiColorVis1', | ||
| color: 'euiColorVis1', |
There was a problem hiding this comment.
@walterra @andreadelrio Fyi, changing colors like this means the current color in Amsterdam changes as well. (in Amsterdam it will be red now)
If that's not wanted, we'd need to use conditional color definitions.
There was a problem hiding this comment.
Thanks @mgadewoll. Afaict these vis colors are not being used in a semantic way (e.g. low/healthy, warning, danger, etc) so we should be safe to make this change this way. Can you confirm @walterra?
| icon: 'questionInCircle', | ||
| color: 'euiColorVis7_behindText', | ||
| borderColor: 'euiColorVis7', | ||
| color: 'euiColorVis7', |
There was a problem hiding this comment.
| color: 'euiColorVis7', | |
| color: 'euiColorVis8', |
| icon: 'questionInCircle', | ||
| color: 'euiColorVis5_behindText', | ||
| borderColor: 'euiColorVis5', | ||
| color: 'euiColorVis5', |
There was a problem hiding this comment.
| color: 'euiColorVis5', | |
| color: 'euiColorVis9', |
| return ( | ||
| <EuiBadge | ||
| color={euiTheme.euiColorVis5_behindText} | ||
| color={euiTheme.colors.vis.euiColorVis5} |
There was a problem hiding this comment.
| color={euiTheme.colors.vis.euiColorVis5} | |
| color={euiTheme.colors.vis.euiColorVis9} |
|
@mgadewoll @andreadelrio went through all the vis colors and added a flag an appropriate colors where necessary. |
...lugins/shared/ml/public/application/data_frame_analytics/pages/job_map/components/legend.tsx
Outdated
Show resolved
Hide resolved
mgadewoll
left a comment
There was a problem hiding this comment.
Thanks for the additional changes and making sure Amsterdam colors have parity. 👏
✅ Changes LGTM from EUI side
💚 Build Succeeded
Metrics [docs]Module Count
Public APIs missing comments
Async chunks
Page load bundle
History
cc @walterra |
## Summary Part of elastic#199715 (EUI Visual Refresh). Recommend to review with white-space diff disabled: https://github.com/elastic/kibana/pull/203518/files?w=1 - All references to renamed tokens have been updated to use the new token name. - 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. - Migrated some data visualizer related SCSS to emotion, part of elastic#140695. - It makes use of EUI's own `useEuiTheme()` instead of our own hook variants. So this gets rid of `useCurrentEuiThemeVars()`, `useFieldStatsFlyoutThemeVars()`, `useCurrentEuiTheme()`, `useCurrentThemeVars()`. - Renamed components used to edit Anomaly Detection jobs from `JobDetails`, `Detectors`, `Datafeed` to `EditJobDetailsTab`, `EditDetectorsTab`, `EditDatafeedTab` to make them less ambiguous. - Added unit tests for `ner_output.tsx`. - Adds checks to pick `euiColorVis*` colors suitable for the theme. ---- Some of our code used colors like `euiColorVis5_behindText`. In Borealis `*_behindText` is no longer available since the original colors like `euiColorVis5` have been updated to be suitable to be used behind text. For that reason and for simplicity's sake I removed the border from the custom badges we use to render NER items: NER labels Amsterdam:  NER labels Borealis:  ### Checklist - [ ] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios - [x] The PR description includes the appropriate Release Notes section, and the correct `release_note:*` label is applied per the [guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
## Summary Part of elastic#199715 (EUI Visual Refresh). Recommend to review with white-space diff disabled: https://github.com/elastic/kibana/pull/203518/files?w=1 - All references to renamed tokens have been updated to use the new token name. - 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. - Migrated some data visualizer related SCSS to emotion, part of elastic#140695. - It makes use of EUI's own `useEuiTheme()` instead of our own hook variants. So this gets rid of `useCurrentEuiThemeVars()`, `useFieldStatsFlyoutThemeVars()`, `useCurrentEuiTheme()`, `useCurrentThemeVars()`. - Renamed components used to edit Anomaly Detection jobs from `JobDetails`, `Detectors`, `Datafeed` to `EditJobDetailsTab`, `EditDetectorsTab`, `EditDatafeedTab` to make them less ambiguous. - Added unit tests for `ner_output.tsx`. - Adds checks to pick `euiColorVis*` colors suitable for the theme. ---- Some of our code used colors like `euiColorVis5_behindText`. In Borealis `*_behindText` is no longer available since the original colors like `euiColorVis5` have been updated to be suitable to be used behind text. For that reason and for simplicity's sake I removed the border from the custom badges we use to render NER items: NER labels Amsterdam:  NER labels Borealis:  ### Checklist - [ ] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios - [x] The PR description includes the appropriate Release Notes section, and the correct `release_note:*` label is applied per the [guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
## Summary Part of elastic#199715 (EUI Visual Refresh). Recommend to review with white-space diff disabled: https://github.com/elastic/kibana/pull/203518/files?w=1 - All references to renamed tokens have been updated to use the new token name. - 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. - Migrated some data visualizer related SCSS to emotion, part of elastic#140695. - It makes use of EUI's own `useEuiTheme()` instead of our own hook variants. So this gets rid of `useCurrentEuiThemeVars()`, `useFieldStatsFlyoutThemeVars()`, `useCurrentEuiTheme()`, `useCurrentThemeVars()`. - Renamed components used to edit Anomaly Detection jobs from `JobDetails`, `Detectors`, `Datafeed` to `EditJobDetailsTab`, `EditDetectorsTab`, `EditDatafeedTab` to make them less ambiguous. - Added unit tests for `ner_output.tsx`. - Adds checks to pick `euiColorVis*` colors suitable for the theme. ---- Some of our code used colors like `euiColorVis5_behindText`. In Borealis `*_behindText` is no longer available since the original colors like `euiColorVis5` have been updated to be suitable to be used behind text. For that reason and for simplicity's sake I removed the border from the custom badges we use to render NER items: NER labels Amsterdam:  NER labels Borealis:  ### Checklist - [ ] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios - [x] The PR description includes the appropriate Release Notes section, and the correct `release_note:*` label is applied per the [guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)

Summary
Part of #199715 (EUI Visual Refresh).
Recommend to review with white-space diff disabled: https://github.com/elastic/kibana/pull/203518/files?w=1
useEuiTheme()instead of our own hook variants. So this gets rid ofuseCurrentEuiThemeVars(),useFieldStatsFlyoutThemeVars(),useCurrentEuiTheme(),useCurrentThemeVars().JobDetails,Detectors,DatafeedtoEditJobDetailsTab,EditDetectorsTab,EditDatafeedTabto make them less ambiguous.ner_output.tsx.euiColorVis*colors suitable for the theme.Some of our code used colors like
euiColorVis5_behindText. In Borealis*_behindTextis no longer available since the original colors likeeuiColorVis5have been updated to be suitable to be used behind text. For that reason and for simplicity's sake I removed the border from the custom badges we use to render NER items:NER labels Amsterdam:
NER labels Borealis:
Checklist
release_note:*label is applied per the guidelines