-
Notifications
You must be signed in to change notification settings - Fork 843
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] @emotion/react
in src/
#5121
Conversation
Preview documentation changes for this PR: https://eui.elastic.co/pr_5121/ |
1 similar comment
Preview documentation changes for this PR: https://eui.elastic.co/pr_5121/ |
Preview documentation changes for this PR: https://eui.elastic.co/pr_5121/ |
Preview documentation changes for this PR: https://eui.elastic.co/pr_5121/ |
Preview documentation changes for this PR: https://eui.elastic.co/pr_5121/ |
Preview documentation changes for this PR: https://eui.elastic.co/pr_5121/ |
Preview documentation changes for this PR: https://eui.elastic.co/pr_5121/ |
Preview documentation changes for this PR: https://eui.elastic.co/pr_5121/ |
# Conflicts: # CHANGELOG.md
Preview documentation changes for this PR: https://eui.elastic.co/pr_5121/ |
Preview documentation changes for this PR: https://eui.elastic.co/pr_5121/ |
* global reset with emotion * amsterdam overrides * text-size-adjust * ams reset * invert ::selection * Renamed `isDefaultTheme` utility to `isLegacyTheme` Default will mean something different when Amsterdam becomes default so I want to head this off now by checking for “Legacy” * Quick cleanup * Fixed up scrollbar function * Removed `useEuiFont` in favor of a single reset on the elements that need it * Added `body` key to global `font` for setting base body font settings at the global level * Some more fixes based on new diff * global reset with emotion * amsterdam overrides * text-size-adjust * ams reset * invert ::selection * Renamed `isDefaultTheme` utility to `isLegacyTheme` Default will mean something different when Amsterdam becomes default so I want to head this off now by checking for “Legacy” * Quick cleanup * Fixed up scrollbar function * Removed `useEuiFont` in favor of a single reset on the elements that need it * Added `body` key to global `font` for setting base body font settings at the global level * Some more fixes based on new diff * Pulling our reset from global styles * SVG `hacks` directly in reset file * Fixed reset import * euiprovider; reset styles * use euiprovider with emotion/cache in docs * Decision clean up * Fixing a few things for legacy dark mode based on not having a provider * Revert "Fixing a few things for legacy dark mode based on not having a provider" This reverts commit 127f12e. * Actually keeping `colorMode` even if `theme = null` * Fixing merge * Moved reset sass folder to `legacy` * fix wiki * euiprovider docs * fix provider docs * remove commented import Co-authored-by: cchaos <caroline.horn@elastic.co>
…nto css-in-js/breaking
Preview documentation changes for this PR: https://eui.elastic.co/pr_5121/ |
Preview documentation changes for this PR: https://eui.elastic.co/pr_5121/ |
jenkins test this |
Preview documentation changes for this PR: https://eui.elastic.co/pr_5121/ |
Preview documentation changes for this PR: https://eui.elastic.co/pr_5121/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good! Awesome work!
- Removed blank mixins file - Added `yarn add` block for dependencies - Added props table to bottom of Provider docs page
Preview documentation changes for this PR: https://eui.elastic.co/pr_5121/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look great - seriously awesome work y'all!
Preview documentation changes for this PR: https://eui.elastic.co/pr_5121/ |
# Conflicts: # cypress/support/index.js # scripts/cypress.js # src-docs/src/routes.js # src/themes/amsterdam/overrides/_code.scss # src/themes/amsterdam/overrides/_code_block.scss # src/themes/eui-amsterdam/overrides/_code_block.scss
# Conflicts: # CHANGELOG.md # src-docs/src/views/guidelines/_get_sass_vars.js # src-docs/src/views/guidelines/sass.js
@thompsongl I've fixed merge conflicts from my Colors docs PR, wasn't actually too bad. |
Preview documentation changes for this PR: https://eui.elastic.co/pr_5121/ |
Preview documentation changes for this PR: https://eui.elastic.co/pr_5121/ |
Good news! It looks like the way elastic/kibana#117368 was implemented we don't need a static CSS reset stylesheet as a fallback. For plugins that have not yet made use of |
Preview documentation changes for this PR: https://eui.elastic.co/pr_5121/ |
Preview documentation changes for this PR: https://eui.elastic.co/pr_5121/ |
Preview documentation changes for this PR: https://eui.elastic.co/pr_5121/ |
Summary
Base feature branch for enabling CSS-in-JS work in the
src/
directory.@emotion/react
inpeerDependencies
css
propisDefaultTheme
utilemotion
#5122)Checklist