Skip to content

Comments

[Dashboard] Rewrite scss to emotion#220520

Merged
mbondyra merged 20 commits intoelastic:mainfrom
mbondyra:dashboard_scss_emotion
Jun 11, 2025
Merged

[Dashboard] Rewrite scss to emotion#220520
mbondyra merged 20 commits intoelastic:mainfrom
mbondyra:dashboard_scss_emotion

Conversation

@mbondyra
Copy link
Contributor

@mbondyra mbondyra commented May 8, 2025

Summary

Part of #207852

II tested printed styles via exporting PDF and comparing.
I prioritized classes over overly complex emotion props.

@mbondyra mbondyra force-pushed the dashboard_scss_emotion branch 3 times, most recently from 8fc4325 to 28b58df Compare June 6, 2025 12:12
if (id && panelRef) {
untilLoaded(id).then(() => {
panelRef.classList.add('dshDashboardGrid__item--highlighted');
// Adds the highlight class in the next event loop to allow the DOM to update
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this fixes a previously broken highlighting the vis when coming back from Lens

@mbondyra mbondyra changed the title Dashboard scss emotion [Dashboard] Rewrite scss to emotion Jun 6, 2025
@mbondyra mbondyra marked this pull request as ready for review June 6, 2025 12:16
@mbondyra mbondyra requested review from a team as code owners June 6, 2025 12:16
@mbondyra mbondyra added release_note:skip Skip the PR/issue when compiling release notes v9.1.0 v8.19.0 Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas t// scss-removal labels Jun 6, 2025
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-presentation (Team:Presentation)

@mbondyra mbondyra force-pushed the dashboard_scss_emotion branch from 131d2c3 to 3eca20d Compare June 6, 2025 13:14
Copy link
Contributor

@ThomThomson ThomThomson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes LGTM! Looked through the code and ran this locally. Found one strange behaviour which could be fixed as part of this PR.

For some reason, when a panel is highlighted - i.e. after adding it covers up the hover actions on the panel below. Not sure if this is in main or not, but could be something to clean up.

zindex

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
dashboard 691 669 -22

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
canvas 1.1MB 1.1MB -92.0B
dashboard 627.4KB 616.8KB -10.6KB
total -10.7KB

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
dashboard 18.1KB 18.1KB -12.0B

History

@mbondyra mbondyra merged commit 1dfc7ce into elastic:main Jun 11, 2025
10 checks passed
@mbondyra mbondyra deleted the dashboard_scss_emotion branch June 11, 2025 12:17
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.19

https://github.com/elastic/kibana/actions/runs/15584628914

nickpeihl pushed a commit to nickpeihl/kibana that referenced this pull request Jun 12, 2025
## Summary

Part of elastic#207852 

II tested printed styles via exporting PDF and comparing. 
I prioritized classes over overly complex emotion props.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
@kibanamachine kibanamachine added the backport missing Added to PRs automatically when the are determined to be missing a backport. label Jun 13, 2025
@kibanamachine
Copy link
Contributor

Friendly reminder: Looks like this PR hasn’t been backported yet.
To create automatically backports add a backport:* label or prevent reminders by adding the backport:skip label.
You can also create backports manually by running node scripts/backport --pr 220520 locally
cc: @mbondyra

iblancof pushed a commit to iblancof/kibana that referenced this pull request Jun 16, 2025
## Summary

Part of elastic#207852 

II tested printed styles via exporting PDF and comparing. 
I prioritized classes over overly complex emotion props.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
@kibanamachine
Copy link
Contributor

Friendly reminder: Looks like this PR hasn’t been backported yet.
To create automatically backports add a backport:* label or prevent reminders by adding the backport:skip label.
You can also create backports manually by running node scripts/backport --pr 220520 locally
cc: @mbondyra

2 similar comments
@kibanamachine
Copy link
Contributor

Friendly reminder: Looks like this PR hasn’t been backported yet.
To create automatically backports add a backport:* label or prevent reminders by adding the backport:skip label.
You can also create backports manually by running node scripts/backport --pr 220520 locally
cc: @mbondyra

@kibanamachine
Copy link
Contributor

Friendly reminder: Looks like this PR hasn’t been backported yet.
To create automatically backports add a backport:* label or prevent reminders by adding the backport:skip label.
You can also create backports manually by running node scripts/backport --pr 220520 locally
cc: @mbondyra

@mbondyra
Copy link
Contributor Author

💚 All backports created successfully

Status Branch Result
8.19

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

mbondyra added a commit to mbondyra/kibana that referenced this pull request Jun 18, 2025
## Summary

Part of elastic#207852

II tested printed styles via exporting PDF and comparing.
I prioritized classes over overly complex emotion props.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 1dfc7ce)

# Conflicts:
#	src/platform/plugins/shared/dashboard/public/dashboard_app/_dashboard_app.scss
#	src/platform/plugins/shared/dashboard/public/dashboard_renderer/viewport/_dashboard_viewport.scss
#	src/platform/plugins/shared/dashboard/public/dashboard_top_nav/_dashboard_top_nav.scss
@kibanamachine
Copy link
Contributor

Friendly reminder: Looks like this PR hasn’t been backported yet.
To create automatically backports add a backport:* label or prevent reminders by adding the backport:skip label.
You can also create backports manually by running node scripts/backport --pr 220520 locally
cc: @mbondyra

2 similar comments
@kibanamachine
Copy link
Contributor

Friendly reminder: Looks like this PR hasn’t been backported yet.
To create automatically backports add a backport:* label or prevent reminders by adding the backport:skip label.
You can also create backports manually by running node scripts/backport --pr 220520 locally
cc: @mbondyra

@kibanamachine
Copy link
Contributor

Friendly reminder: Looks like this PR hasn’t been backported yet.
To create automatically backports add a backport:* label or prevent reminders by adding the backport:skip label.
You can also create backports manually by running node scripts/backport --pr 220520 locally
cc: @mbondyra

@kibanamachine
Copy link
Contributor

Friendly reminder: Looks like this PR hasn’t been backported yet.
To create automatically backports add a backport:* label or prevent reminders by adding the backport:skip label.
You can also create backports manually by running node scripts/backport --pr 220520 locally
cc: @mbondyra

1 similar comment
@kibanamachine
Copy link
Contributor

Friendly reminder: Looks like this PR hasn’t been backported yet.
To create automatically backports add a backport:* label or prevent reminders by adding the backport:skip label.
You can also create backports manually by running node scripts/backport --pr 220520 locally
cc: @mbondyra

@mbondyra mbondyra added backport:skip This PR does not require backporting and removed backport missing Added to PRs automatically when the are determined to be missing a backport. backport:version Backport to applied version labels labels Jun 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:skip This PR does not require backporting release_note:skip Skip the PR/issue when compiling release notes scss-removal Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas t// v9.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants