Skip to content
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

[CSS-in-JS] Expand use of @emotion/cache #5831

Merged
merged 9 commits into from
Apr 26, 2022

Conversation

thompsongl
Copy link
Contributor

@thompsongl thompsongl commented Apr 21, 2022

Summary

Previously only global styles made use of the custom insertion point for @emotion styles via the @emotion/cache CacheProvider. Based on observations in Kibana, it will be beneficial to move all EUI @emotion styles to into the same insertion location.
We still ask that consumers configure this based on how their application is setup.

Checklist

  • Checked in both light and dark modes
  • Checked in Chrome, Safari, Edge, and Firefox
  • Props have proper autodocs and playground toggles
  • Added documentation
  • Checked Code Sandbox works for any docs examples
  • Added or updated jest and cypress tests
  • Checked for breaking changes and labeled appropriately
  • A changelog entry exists and is marked appropriately

@kibanamachine
Copy link

Preview documentation changes for this PR: https://eui.elastic.co/pr_5831/

Copy link
Contributor

@cchaos cchaos left a comment

Choose a reason for hiding this comment

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

🙌 Glad the fix was this simple. I double checked both className and css override methods and in all 3 major browsers. Just a couple questions.

src-docs/src/views/provider/provider_example.js Outdated Show resolved Hide resolved
src/components/provider/provider.tsx Show resolved Hide resolved
Co-authored-by: Caroline Horn <549577+cchaos@users.noreply.github.com>
@kibanamachine
Copy link

Preview documentation changes for this PR: https://eui.elastic.co/pr_5831/

@kibanamachine
Copy link

Preview documentation changes for this PR: https://eui.elastic.co/pr_5831/

@thompsongl
Copy link
Contributor Author

Flaky Cypress test

jenkins test this

@kibanamachine
Copy link

Preview documentation changes for this PR: https://eui.elastic.co/pr_5831/

Copy link
Contributor

@chandlerprall chandlerprall 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; pulled & tested locally, I really like how EuiProvider cleaned up 👍

@kibanamachine
Copy link

Preview documentation changes for this PR: https://eui.elastic.co/pr_5831/

@thompsongl thompsongl merged commit 134bffc into elastic:main Apr 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants