[TSVB/SCSS] Migrate all remaining .scss styles to Emotion CSS-in-JS#221484
[TSVB/SCSS] Migrate all remaining .scss styles to Emotion CSS-in-JS#221484mariairiartef merged 16 commits intoelastic:mainfrom
.scss styles to Emotion CSS-in-JS#221484Conversation
|
Pinging @elastic/kibana-visualizations (Team:Visualizations) |
💛 Build succeeded, but was flaky
Failed CI StepsMetrics [docs]Module Count
Async chunks
|
| white-space: nowrap; | ||
| overflow: hidden; | ||
| text-overflow: ellipsis; |
There was a problem hiding this comment.
Are you doing this instead of euiTextTruncate() because of the createReversedStyles thing?
There was a problem hiding this comment.
Not really. You can either add eui-textTruncate class or import { euiTextTruncate } from '@elastic/eui'; and use it as css={euiTextTruncate()}. However, in this case I directly copied the styles.
.scss styles to Emotion CSS-in-JS
|
Starting backport for target branches: 8.19 https://github.com/elastic/kibana/actions/runs/15350774956 |
💔 All backports failed
Manual backportTo create the backport manually run: Questions ?Please refer to the Backport tool documentation |
…elastic#221484) ## Summary Part of elastic#220095 Migrates the following files to Emotion CSS-in-JS: - `_gauge.scss` - `_metric.scss` - `_top_n.scss` - `_variables.scss` - `_error.scss` - `_vis_editor_visualization.scss` - `_panel_config.scss` ### Considerations For details on considerations, read [this](elastic#220095 (comment)). ### Checklist - [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) (cherry picked from commit 9872638) # Conflicts: # src/platform/plugins/private/vis_types/timeseries/public/application/components/_error.scss # src/platform/plugins/private/vis_types/timeseries/public/application/components/_vis_editor_visualization.scss # src/platform/plugins/private/vis_types/timeseries/public/application/components/panel_config/_panel_config.scss # src/platform/plugins/private/vis_types/timeseries/public/application/components/panel_config/_panel_config.ts # src/platform/plugins/private/vis_types/timeseries/public/application/visualizations/views/_gauge.scss # src/platform/plugins/private/vis_types/timeseries/public/application/visualizations/views/_metric.scss # src/platform/plugins/private/vis_types/timeseries/public/application/visualizations/views/_top_n.scss # src/platform/plugins/private/vis_types/timeseries/public/application/visualizations/views/_variables.scss # src/platform/plugins/private/vis_types/timeseries/public/application/visualizations/views/_variables.ts
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…S-in-JS (#221484) (#222362) # Backport This will backport the following commits from `main` to `8.19`: - [[TSVB/SCSS] Migrate all remaining `.scss` styles to Emotion CSS-in-JS (#221484)](#221484) <!--- Backport version: 10.0.0 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Maria Iriarte","email":"106958839+mariairiartef@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-05-30T16:02:03Z","message":"[TSVB/SCSS] Migrate all remaining `.scss` styles to Emotion CSS-in-JS (#221484)\n\n## Summary\n\nPart of https://github.com/elastic/kibana/issues/220095\n\nMigrates the following files to Emotion CSS-in-JS:\n- `_gauge.scss`\n- `_metric.scss`\n- `_top_n.scss` \n- `_variables.scss`\n- `_error.scss`\n- `_vis_editor_visualization.scss`\n- `_panel_config.scss`\n\n### Considerations\n\nFor details on considerations, read\n[this](https://github.com/elastic/kibana/issues/220095#issuecomment-2911737679).\n\n### Checklist\n\n- [x] The PR description includes the appropriate Release Notes section,\nand the correct `release_note:*` label is applied per the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"98726383a4b1359a85480846585ac24b0c60d995","branchLabelMapping":{"^v9.1.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Feature:TSVB","technical debt","Team:Visualizations","release_note:skip","backport:version","v9.1.0","v8.19.0","scss-removal"],"title":"[TSVB/SCSS] Migrate all remaining `.scss` styles to Emotion CSS-in-JS","number":221484,"url":"https://github.com/elastic/kibana/pull/221484","mergeCommit":{"message":"[TSVB/SCSS] Migrate all remaining `.scss` styles to Emotion CSS-in-JS (#221484)\n\n## Summary\n\nPart of https://github.com/elastic/kibana/issues/220095\n\nMigrates the following files to Emotion CSS-in-JS:\n- `_gauge.scss`\n- `_metric.scss`\n- `_top_n.scss` \n- `_variables.scss`\n- `_error.scss`\n- `_vis_editor_visualization.scss`\n- `_panel_config.scss`\n\n### Considerations\n\nFor details on considerations, read\n[this](https://github.com/elastic/kibana/issues/220095#issuecomment-2911737679).\n\n### Checklist\n\n- [x] The PR description includes the appropriate Release Notes section,\nand the correct `release_note:*` label is applied per the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"98726383a4b1359a85480846585ac24b0c60d995"}},"sourceBranch":"main","suggestedTargetBranches":["8.19"],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/221484","number":221484,"mergeCommit":{"message":"[TSVB/SCSS] Migrate all remaining `.scss` styles to Emotion CSS-in-JS (#221484)\n\n## Summary\n\nPart of https://github.com/elastic/kibana/issues/220095\n\nMigrates the following files to Emotion CSS-in-JS:\n- `_gauge.scss`\n- `_metric.scss`\n- `_top_n.scss` \n- `_variables.scss`\n- `_error.scss`\n- `_vis_editor_visualization.scss`\n- `_panel_config.scss`\n\n### Considerations\n\nFor details on considerations, read\n[this](https://github.com/elastic/kibana/issues/220095#issuecomment-2911737679).\n\n### Checklist\n\n- [x] The PR description includes the appropriate Release Notes section,\nand the correct `release_note:*` label is applied per the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"98726383a4b1359a85480846585ac24b0c60d995"}},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT-->
…elastic#221484) ## Summary Part of elastic#220095 Migrates the following files to Emotion CSS-in-JS: - `_gauge.scss` - `_metric.scss` - `_top_n.scss` - `_variables.scss` - `_error.scss` - `_vis_editor_visualization.scss` - `_panel_config.scss` ### Considerations For details on considerations, read [this](elastic#220095 (comment)). ### Checklist - [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)
…elastic#221484) ## Summary Part of elastic#220095 Migrates the following files to Emotion CSS-in-JS: - `_gauge.scss` - `_metric.scss` - `_top_n.scss` - `_variables.scss` - `_error.scss` - `_vis_editor_visualization.scss` - `_panel_config.scss` ### Considerations For details on considerations, read [this](elastic#220095 (comment)). ### Checklist - [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 #220095
Migrates the following files to Emotion CSS-in-JS:
_gauge.scss_metric.scss_top_n.scss_variables.scss_error.scss_vis_editor_visualization.scss_panel_config.scssConsiderations
For details on considerations, read this.
Checklist
release_note:*label is applied per the guidelines