-
Notifications
You must be signed in to change notification settings - Fork 841
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
[Meta][CSS-in-JS] Component conversions #5685
Comments
Component Conversion ProcessConverting the Sass styles to Emotion 1. New file structure
Example //imports
import { useEuiTheme } from '../../services';
import { euiAvatarStyles } from './avatar.styles';
//set the theme and configure Emotion styling
const euiTheme = useEuiTheme();
const styles = euiAvatarStyles(euiTheme);
2a. Convert & Remove Sass component styles
2b. Update style props types by removing
|
EDIT: We've moved this conversion checklist to our GitHub PR template instead. See #6294 |
This comment was marked as outdated.
This comment was marked as outdated.
Necessary to style components that are not yet converted to Emotion (elastic/eui#5685)
Necessary to style components that are not yet converted to Emotion (elastic/eui#5685)
Necessary to style components that are not yet converted to Emotion (elastic/eui#5685)
2.5 years later - all EUI components have been converted!! 🚀 🥲 |
Wiki Doc for How to Write Styles with Emotion
Completed
EuiAccordion
convert Sass to Emotion CSS #5826) @1CopenutEuiBottomBar
to Emotion #5823EuiFlyout
#6213EuiSpacer
to Emotion #5812)EuiButton
#6150EuiFacetButton
andEuiFacetGroup
#5878)EuiAvatar
#5670)"custom"
option toEuiComment.type
and more enhancements #5692)EuiIcon
#5967EuiImage
#5969EuiListGroup
#6207EuiCode
andEuiCodeBlock
#6263EuiModal
#6321)Utilities
EuiScreenReaderOnly
#5846EuiSkipLink
#5851className
utilities #6124EuiErrorBoundary
#6053EuiMark
#4575)onClick
prop #6090EuiPortal
#6075EuiTextDiff
#6056Partially complete
EuiKeyPadMenuItem
Component Only 2/2) #6653Display
Navigation
EuiKeyPadMenu
Component Only 1/2) #6401Layout
Tables
Forms
Low priority (3rd party components or components that may move out of EUI)
The text was updated successfully, but these errors were encountered: