-
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
[Emotion] Convert EuiStat #5968
Conversation
- this wasn't outputting anything meaningful as there is no `dark` key in `$titleColors`
+ convert text align to logical properties
+ respect euiCanAnimate
- move all title logic together - change ternary logic to props only instead of to entire title JSX - move `euiStat__title` to flat className, similar to `euiStat__description` - remove unnecessary string interpolation - DRY out commonProps - fix typing complaint on commonProps
@breehall Do you mind reviewing this when you have a quick sec? Should hopefully be pretty fast! |
Preview documentation changes for this PR: https://eui.elastic.co/pr_5968/ |
- to use actual options instead of static & potentially stale values
Preview documentation changes for this PR: https://eui.elastic.co/pr_5968/ |
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.
The conversion looks good! Pull and tested against the current version! LGTM
Summary
Converts EuiStat to Emotion and also removes the CSS
--
modifier classes (no usages in Kibana). The__
child classes I left in-place as there were a few usages in Kibana.Things to look out for when moving styles
- [ ] Usegap
property to add margin between items if using flex- [ ] Can any still existing.js
files be converted to TS?- [ ] Convert component-specific Sass vars to exported JS versions-inline
and-block
(Logical properties)euiCanAnimate
QA