[TSVB/SCSS] Migrate _vis_with_splits.scss file#221002
[TSVB/SCSS] Migrate _vis_with_splits.scss file#221002mariairiartef merged 5 commits intoelastic:mainfrom
_vis_with_splits.scss file#221002Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR migrates the styling of the vis_with_splits component from SCSS to Emotion CSS, aligning with the efforts outlined in #220095.
- Removed the SCSS file import and replaced it with Emotion CSS styles
- Introduced three style constants (splitVisStyle, splitVisItemStyle, splitVisOneStyle) and applied them within the component rendering
Files not reviewed (1)
- src/platform/plugins/shared/vis_types/timeseries/public/application/components/_vis_with_splits.scss: Language not supported
Comments suppressed due to low confidence (2)
src/platform/plugins/shared/vis_types/timeseries/public/application/components/vis_with_splits.js:33
- Ensure that the component using splitVisItemStyle is wrapped with a ThemeProvider, so that euiTheme is always provided. Alternatively, consider defining a default value to prevent potential runtime issues.
export const splitVisItemStyle = ({ euiTheme }) => css`
src/platform/plugins/shared/vis_types/timeseries/public/application/components/vis_with_splits.js:150
- The css prop is assigned a function that depends on euiTheme. Confirm that the surrounding component context properly supplies this theme via the ThemeProvider to avoid style resolution issues.
<div key={key} className="tvbSplitVis__split" css={splitVisItemStyle}>
|
Pinging @elastic/kibana-visualizations (Team:Visualizations) |
|
Starting backport for target branches: 8.19 |
💚 Build Succeeded
Metrics [docs]Module Count
Async chunks
|
💔 All backports failed
Manual backportTo create the backport manually run: Questions ?Please refer to the Backport tool documentation |
|
Friendly reminder: Looks like this PR hasn’t been backported yet. |
1 similar comment
|
Friendly reminder: Looks like this PR hasn’t been backported yet. |
## Summary Part of elastic#220095 Migrates `_vis_with_splits.scss` file. ### Considerations For details on considerations, read [this](elastic#220095 (comment)). ## Checklist - [ ] 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 c4068fc) # Conflicts: # src/platform/plugins/private/vis_types/timeseries/public/application/components/_vis_with_splits.scss
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…22354) # Backport This will backport the following commits from `main` to `8.19`: - [[TSVB/SCSS] Migrate `_vis_with_splits.scss` file (#221002)](#221002) <!--- 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-29T12:43:22Z","message":"[TSVB/SCSS] Migrate `_vis_with_splits.scss` file (#221002)\n\n## Summary\n\nPart of https://github.com/elastic/kibana/issues/220095\n\nMigrates `_vis_with_splits.scss` file.\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- [ ] 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":"c4068fcbee9e25887fcd0b4cae5a52df7adbb804","branchLabelMapping":{"^v9.1.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Feature:TSVB","technical debt","Team:Visualizations","release_note:skip","backport missing","backport:version","v9.1.0","v8.19.0","scss-removal"],"title":"[TSVB/SCSS] Migrate `_vis_with_splits.scss` file","number":221002,"url":"https://github.com/elastic/kibana/pull/221002","mergeCommit":{"message":"[TSVB/SCSS] Migrate `_vis_with_splits.scss` file (#221002)\n\n## Summary\n\nPart of https://github.com/elastic/kibana/issues/220095\n\nMigrates `_vis_with_splits.scss` file.\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- [ ] 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":"c4068fcbee9e25887fcd0b4cae5a52df7adbb804"}},"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/221002","number":221002,"mergeCommit":{"message":"[TSVB/SCSS] Migrate `_vis_with_splits.scss` file (#221002)\n\n## Summary\n\nPart of https://github.com/elastic/kibana/issues/220095\n\nMigrates `_vis_with_splits.scss` file.\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- [ ] 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":"c4068fcbee9e25887fcd0b4cae5a52df7adbb804"}},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT-->
## Summary Part of elastic#220095 Migrates `_vis_with_splits.scss` file. ### Considerations For details on considerations, read [this](elastic#220095 (comment)). ## Checklist - [ ] 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#220095 Migrates `_vis_with_splits.scss` file. ### Considerations For details on considerations, read [this](elastic#220095 (comment)). ## Checklist - [ ] 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
_vis_with_splits.scssfile.Considerations
For details on considerations, read this.
Checklist
release_note:*label is applied per the guidelines