-
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 + theming rollout plan #4529
Comments
@chandlerprall, I want to work on this feature, Could you please tell me how should i proceed |
@hetanthakkar1 this doesn't have discrete, well-defined tasks at the moment. When the core functionality has landed, we will create a new [Meta] issue similar to #1557 in order to track the SCSS->Emotion conversion progress. At that point we'll be able to take contributions in this area; for now, we are still exploring internally and laying the ground work for that process. |
okay @chandlerprall thank you |
@hetanthakkar1 , We've got a great list of |
@cchaos yeah! thank you. I will check them out |
Support for theming EuiIcon will require continued use of class names (or other DOM selectors), but can still be done in with Emotion. Targeting const iconStyles = css`
[base styles]
&.euiIcon--app {
fill: ${theme.colors.euiTextColor};
// This provides the default secondary color
.euiIcon__fillSecondary {
fill: ${makeGraphicContrastColor(theme.colors.euiColorSecondary)};
}
}
` There is likely to be a different pattern for adding stateful classes/logic for things like |
Just to confirm, we'll still be able to easily override things, right? I have 200 lines of CSS that override EUI, for instance, for #2184 I added
|
Yes. Class names will be available for the foreseeable future. They will eventually be deprecated, but some other method will be recommended. |
Closing this in favor of #3912, which I'm moved some of the still relevant info to. |
This is intended to reduce the number of breaking change releases to only 1, document the expected upgrade process both within EUI and by consuming applications, and be transparent about our timeline.
Feature branch
https://github.com/elastic/eui/tree/feature/css-in-js | #4511
PRs
EuiMark
#4575Open issues/questions
Upgrade process
EUI
Consuming apps
Rollout
In rough order of completion
emotion
kibana#98157@emotion/react
(soon) from this point forward using only the generated CSS is not supported, EUI must be used through ReactThe text was updated successfully, but these errors were encountered: