-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[8.0 Breaking Change] Emotion CSS-in-JS #88715
Comments
Pinging @elastic/kibana-presentation (Team:Presentation) |
@thompsongl has provided me with code to try the new API in Canvas. Stay tuned! |
Notes
This has HUGE implications for Canvas, as we can use Emotion to create scoped class names... perhaps even with user-defined CSS. This will require more research. |
I do see this error now.
We're not set on the shape of the theme yet, but I can add some more categories with a temporary construction. |
@clintandrewhall Recent changes in thompsongl#3 contain resolutions to the @mistic might be interested in the changes to |
Closing this for the time being as we aren't prioritizing lower impact tech debt for Canvas. We can reopen this if our priorities change in the future. |
Summary of Exploration or Proposed Change
Canvas needs to remove public classnames from its elements in favor of strict contract. At present, users can inspect the DOM and write custom styles against the structure. While probably useful, it means that any changes to DOM structure or CSS classname is a breaking change between minor releases.
There will be significant effort to bring this to our React components wholesale. We'll need to split this into phases:
Questions
lint
warning if any components are still using CSS classnames?Findings
The text was updated successfully, but these errors were encountered: