[Visualizations] Migrate vislib scss files to Emotion#228979
Merged
andrimal merged 11 commits intoelastic:mainfrom Aug 1, 2025
Merged
[Visualizations] Migrate vislib scss files to Emotion#228979andrimal merged 11 commits intoelastic:mainfrom
andrimal merged 11 commits intoelastic:mainfrom
Conversation
13 tasks
andrimal
commented
Jul 24, 2025
|
|
||
| .vislib--legend-bottom & { | ||
| margin-left: ${euiThemeContext.euiTheme.size.l}; | ||
| margin-left: ${euiThemeContext.euiTheme.size.xl}; |
Contributor
Author
Contributor
|
Pinging @elastic/kibana-visualizations (Team:Visualizations) |
ryankeairns
approved these changes
Jul 31, 2025
Contributor
ryankeairns
left a comment
There was a problem hiding this comment.
SCSS files deleted; styles migrated
mariairiartef
approved these changes
Aug 1, 2025
Contributor
💚 Build Succeeded
Metrics [docs]Module Count
Async chunks
Page load bundle
History
|
szaffarano
pushed a commit
to szaffarano/kibana
that referenced
this pull request
Aug 5, 2025
## Summary Fix elastic#221885 Migrates the below files to Emotion CSS-in-JS: ### Old vislib chart - `src/platform/plugins/private/vis_types/vislib/public/index.scss` - `src/platform/plugins/private/vis_types/vislib/public/vislib/_index.scss` - `src/platform/plugins/private/vis_types/vislib/public/vislib/_variables.scss` - `src/platform/plugins/private/vis_types/vislib/public/vislib/_vislib_vis_type.scss` - `src/platform/plugins/private/vis_types/vislib/public/vislib/components/legend/_index.scss` - `src/platform/plugins/private/vis_types/vislib/public/vislib/components/legend/_legend.scss` - `src/platform/plugins/private/vis_types/vislib/public/vislib/components/tooltip/_index.scss` - `src/platform/plugins/private/vis_types/vislib/public/vislib/components/tooltip/_tooltip.scss` - `src/platform/plugins/private/vis_types/vislib/public/vislib/lib/_index.scss` - `src/platform/plugins/private/vis_types/vislib/public/vislib/lib/layout/_index.scss` - `src/platform/plugins/private/vis_types/vislib/public/vislib/lib/layout/_layout.scss` - `src/platform/plugins/private/vis_types/vislib/public/vislib/visualizations/gauges/_index.scss` - `src/platform/plugins/private/vis_types/vislib/public/vislib/visualizations/gauges/_meter.scss` ## Tooltip changes The tooltip styles in the `_tooltip.scss` file apply to the legacy heatmap chart. Here the [euiToolTipStyle](https://github.com/elastic/eui/blob/main/packages/eui/src/global_styling/mixins/_tool_tip.scss) mixin was used. For this migration: - The colors were changed and a border was added on purpose to match the xy tooltip style introduced during this migration: elastic#215702 - The rest of the necessary styles were copied from the `euiTooltipStyle` ### Before - light: <img width="373" height="171" alt="Screenshot 2025-07-29 at 4 12 45 PM" src="https://github.com/user-attachments/assets/81080d2c-bb90-44c9-bad6-fdb3222a4548" /> <img width="391" height="232" alt="Screenshot 2025-07-29 at 3 44 50 PM" src="https://github.com/user-attachments/assets/df876bd2-5bd5-4baf-8352-2efc605e023c" /> - dark: <img width="291" height="162" alt="Screenshot 2025-07-29 at 4 13 32 PM" src="https://github.com/user-attachments/assets/1cb6b64e-a5e6-4cec-b6ea-f75c0d9cca63" /> <img width="348" height="198" alt="Screenshot 2025-07-29 at 5 17 53 PM" src="https://github.com/user-attachments/assets/4569e14a-e738-40d7-a941-b23d6166b0f0" /> ### After - light: <img width="323" height="144" alt="Screenshot 2025-07-29 at 4 12 50 PM" src="https://github.com/user-attachments/assets/6719b7ee-810b-48e6-9cc1-06b170c48220" /> <img width="387" height="189" alt="Screenshot 2025-07-29 at 3 44 57 PM" src="https://github.com/user-attachments/assets/a2f713f8-7bd0-42e1-9e39-11c7133fe74b" /> - dark: <img width="256" height="127" alt="Screenshot 2025-07-29 at 4 13 20 PM" src="https://github.com/user-attachments/assets/47534025-541e-4b2f-88d5-720b13601830" /> <img width="381" height="207" alt="Screenshot 2025-07-29 at 3 51 01 PM" src="https://github.com/user-attachments/assets/9ffc6dd4-60ca-4295-a4ad-f2390b2da57f" /> ### Checklist Check the PR satisfies following conditions. Reviewers should verify this PR satisfies this list as well. - [x] [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)
delanni
pushed a commit
to delanni/kibana
that referenced
this pull request
Aug 5, 2025
## Summary Fix elastic#221885 Migrates the below files to Emotion CSS-in-JS: ### Old vislib chart - `src/platform/plugins/private/vis_types/vislib/public/index.scss` - `src/platform/plugins/private/vis_types/vislib/public/vislib/_index.scss` - `src/platform/plugins/private/vis_types/vislib/public/vislib/_variables.scss` - `src/platform/plugins/private/vis_types/vislib/public/vislib/_vislib_vis_type.scss` - `src/platform/plugins/private/vis_types/vislib/public/vislib/components/legend/_index.scss` - `src/platform/plugins/private/vis_types/vislib/public/vislib/components/legend/_legend.scss` - `src/platform/plugins/private/vis_types/vislib/public/vislib/components/tooltip/_index.scss` - `src/platform/plugins/private/vis_types/vislib/public/vislib/components/tooltip/_tooltip.scss` - `src/platform/plugins/private/vis_types/vislib/public/vislib/lib/_index.scss` - `src/platform/plugins/private/vis_types/vislib/public/vislib/lib/layout/_index.scss` - `src/platform/plugins/private/vis_types/vislib/public/vislib/lib/layout/_layout.scss` - `src/platform/plugins/private/vis_types/vislib/public/vislib/visualizations/gauges/_index.scss` - `src/platform/plugins/private/vis_types/vislib/public/vislib/visualizations/gauges/_meter.scss` ## Tooltip changes The tooltip styles in the `_tooltip.scss` file apply to the legacy heatmap chart. Here the [euiToolTipStyle](https://github.com/elastic/eui/blob/main/packages/eui/src/global_styling/mixins/_tool_tip.scss) mixin was used. For this migration: - The colors were changed and a border was added on purpose to match the xy tooltip style introduced during this migration: elastic#215702 - The rest of the necessary styles were copied from the `euiTooltipStyle` ### Before - light: <img width="373" height="171" alt="Screenshot 2025-07-29 at 4 12 45 PM" src="https://github.com/user-attachments/assets/81080d2c-bb90-44c9-bad6-fdb3222a4548" /> <img width="391" height="232" alt="Screenshot 2025-07-29 at 3 44 50 PM" src="https://github.com/user-attachments/assets/df876bd2-5bd5-4baf-8352-2efc605e023c" /> - dark: <img width="291" height="162" alt="Screenshot 2025-07-29 at 4 13 32 PM" src="https://github.com/user-attachments/assets/1cb6b64e-a5e6-4cec-b6ea-f75c0d9cca63" /> <img width="348" height="198" alt="Screenshot 2025-07-29 at 5 17 53 PM" src="https://github.com/user-attachments/assets/4569e14a-e738-40d7-a941-b23d6166b0f0" /> ### After - light: <img width="323" height="144" alt="Screenshot 2025-07-29 at 4 12 50 PM" src="https://github.com/user-attachments/assets/6719b7ee-810b-48e6-9cc1-06b170c48220" /> <img width="387" height="189" alt="Screenshot 2025-07-29 at 3 44 57 PM" src="https://github.com/user-attachments/assets/a2f713f8-7bd0-42e1-9e39-11c7133fe74b" /> - dark: <img width="256" height="127" alt="Screenshot 2025-07-29 at 4 13 20 PM" src="https://github.com/user-attachments/assets/47534025-541e-4b2f-88d5-720b13601830" /> <img width="381" height="207" alt="Screenshot 2025-07-29 at 3 51 01 PM" src="https://github.com/user-attachments/assets/9ffc6dd4-60ca-4295-a4ad-f2390b2da57f" /> ### Checklist Check the PR satisfies following conditions. Reviewers should verify this PR satisfies this list as well. - [x] [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)
NicholasPeretti
pushed a commit
to NicholasPeretti/kibana
that referenced
this pull request
Aug 18, 2025
## Summary Fix elastic#221885 Migrates the below files to Emotion CSS-in-JS: ### Old vislib chart - `src/platform/plugins/private/vis_types/vislib/public/index.scss` - `src/platform/plugins/private/vis_types/vislib/public/vislib/_index.scss` - `src/platform/plugins/private/vis_types/vislib/public/vislib/_variables.scss` - `src/platform/plugins/private/vis_types/vislib/public/vislib/_vislib_vis_type.scss` - `src/platform/plugins/private/vis_types/vislib/public/vislib/components/legend/_index.scss` - `src/platform/plugins/private/vis_types/vislib/public/vislib/components/legend/_legend.scss` - `src/platform/plugins/private/vis_types/vislib/public/vislib/components/tooltip/_index.scss` - `src/platform/plugins/private/vis_types/vislib/public/vislib/components/tooltip/_tooltip.scss` - `src/platform/plugins/private/vis_types/vislib/public/vislib/lib/_index.scss` - `src/platform/plugins/private/vis_types/vislib/public/vislib/lib/layout/_index.scss` - `src/platform/plugins/private/vis_types/vislib/public/vislib/lib/layout/_layout.scss` - `src/platform/plugins/private/vis_types/vislib/public/vislib/visualizations/gauges/_index.scss` - `src/platform/plugins/private/vis_types/vislib/public/vislib/visualizations/gauges/_meter.scss` ## Tooltip changes The tooltip styles in the `_tooltip.scss` file apply to the legacy heatmap chart. Here the [euiToolTipStyle](https://github.com/elastic/eui/blob/main/packages/eui/src/global_styling/mixins/_tool_tip.scss) mixin was used. For this migration: - The colors were changed and a border was added on purpose to match the xy tooltip style introduced during this migration: elastic#215702 - The rest of the necessary styles were copied from the `euiTooltipStyle` ### Before - light: <img width="373" height="171" alt="Screenshot 2025-07-29 at 4 12 45 PM" src="https://github.com/user-attachments/assets/81080d2c-bb90-44c9-bad6-fdb3222a4548" /> <img width="391" height="232" alt="Screenshot 2025-07-29 at 3 44 50 PM" src="https://github.com/user-attachments/assets/df876bd2-5bd5-4baf-8352-2efc605e023c" /> - dark: <img width="291" height="162" alt="Screenshot 2025-07-29 at 4 13 32 PM" src="https://github.com/user-attachments/assets/1cb6b64e-a5e6-4cec-b6ea-f75c0d9cca63" /> <img width="348" height="198" alt="Screenshot 2025-07-29 at 5 17 53 PM" src="https://github.com/user-attachments/assets/4569e14a-e738-40d7-a941-b23d6166b0f0" /> ### After - light: <img width="323" height="144" alt="Screenshot 2025-07-29 at 4 12 50 PM" src="https://github.com/user-attachments/assets/6719b7ee-810b-48e6-9cc1-06b170c48220" /> <img width="387" height="189" alt="Screenshot 2025-07-29 at 3 44 57 PM" src="https://github.com/user-attachments/assets/a2f713f8-7bd0-42e1-9e39-11c7133fe74b" /> - dark: <img width="256" height="127" alt="Screenshot 2025-07-29 at 4 13 20 PM" src="https://github.com/user-attachments/assets/47534025-541e-4b2f-88d5-720b13601830" /> <img width="381" height="207" alt="Screenshot 2025-07-29 at 3 51 01 PM" src="https://github.com/user-attachments/assets/9ffc6dd4-60ca-4295-a4ad-f2390b2da57f" /> ### Checklist Check the PR satisfies following conditions. Reviewers should verify this PR satisfies this list as well. - [x] [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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
Fix #221885
Migrates the below files to Emotion CSS-in-JS:
Old vislib chart
src/platform/plugins/private/vis_types/vislib/public/index.scsssrc/platform/plugins/private/vis_types/vislib/public/vislib/_index.scsssrc/platform/plugins/private/vis_types/vislib/public/vislib/_variables.scsssrc/platform/plugins/private/vis_types/vislib/public/vislib/_vislib_vis_type.scsssrc/platform/plugins/private/vis_types/vislib/public/vislib/components/legend/_index.scsssrc/platform/plugins/private/vis_types/vislib/public/vislib/components/legend/_legend.scsssrc/platform/plugins/private/vis_types/vislib/public/vislib/components/tooltip/_index.scsssrc/platform/plugins/private/vis_types/vislib/public/vislib/components/tooltip/_tooltip.scsssrc/platform/plugins/private/vis_types/vislib/public/vislib/lib/_index.scsssrc/platform/plugins/private/vis_types/vislib/public/vislib/lib/layout/_index.scsssrc/platform/plugins/private/vis_types/vislib/public/vislib/lib/layout/_layout.scsssrc/platform/plugins/private/vis_types/vislib/public/vislib/visualizations/gauges/_index.scsssrc/platform/plugins/private/vis_types/vislib/public/vislib/visualizations/gauges/_meter.scssTooltip changes
The tooltip styles in the
_tooltip.scssfile apply to the legacy heatmap chart. Here the euiToolTipStyle mixin was used.For this migration:
tooltip.scssfile #215702euiTooltipStyleBefore
After
Checklist
Check the PR satisfies following conditions.
Reviewers should verify this PR satisfies this list as well.
release_note:*label is applied per the guidelines