elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.67k stars 8.23k forks source link

Migrate styles from `styled-components` to `emotion` #190245

Open maryam-saeidi opened 3 months ago

maryam-saeidi commented 3 months ago

Summary

There is a plan to migrate from styled-components to emotion, and this ticket focuses on styled-components usages for obs-ux-management related plugins and related information for this migration. This migration helps to avoid issues related to sharing components with platform plugins, as they have already started this migration. (Avoiding issues such as https://github.com/elastic/kibana/issues/186969)

Here is a comment from EUI team about this migration.

Here are hooks that can be used instead of styled-components ThemeContext: (comment)

Plugin Number of imports from styled-components
Observability 7
SLO 8
Investigate 0
Investigate-app 0
Synthetics 16
Uptime 29

Here are some PRs that tried to migrate some components :

elasticmachine commented 3 months ago

Pinging @elastic/obs-ux-management-team (Team:obs-ux-management)