-
Notifications
You must be signed in to change notification settings - Fork 829
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/eui text 2 #5931
Emotion/eui text 2 #5931
Conversation
Preview documentation changes for this PR: https://eui.elastic.co/pr_5931/ |
354566d
to
84fcc66
Compare
TODO: EuiCode variables were not converted, per direction from Caroline
- simplifies usage
+ convert optional params to an options object + clean up euiFontSize and euiTitle fns - remove `scale` fallback since the utils don't really make sense without that param, and remove rem fallbacks in place of just single options fallback
- since there isn't a .9 scale size, we should just use `em` to make it relative - since `.euiCode` also uses `.9em`, we can now remove the `:not()` selector
- attempting to account for `em` margins + add :not(:last-child) selector per Caroline's request
…file - might as well do it while I'm here and thinking about it + expanded our logicals helper to include all logical `border` properties, since the converted CSS uses this
+ switch to logical properties
- text alignment already has its own CSS utils that users can call directly (that we can also convert any Kibanau sage into), so I feel very safe making this change, and I'd rather people not continue to hook into these classNames
- since they're no longer setting CSS - we should convert Kibana usages to the component
+ fix syntax highlighting
- which allows us to skip nesting multiple div wrappers when using `textAlign` and `color` props, and also will allow for more flexible EuiText usage when deprecating CSS classes
- until it's converted to CSS-in-JS
Co-authored-by: Caroline Horn <549577+cchaos@users.noreply.github.com>
Co-authored-by: Caroline Horn <549577+cchaos@users.noreply.github.com>
- turn off whitespace diffs for this change
Co-authored-by: Caroline Horn <549577+cchaos@users.noreply.github.com>
This reverts commit bdbcc81.
+ tweak EuiTextColor playground to allow passing custom colors
Co-authored-by: Caroline Horn <549577+cchaos@users.noreply.github.com>
84fcc66
to
36f73d1
Compare
Preview documentation changes for this PR: https://eui.elastic.co/pr_5931/ |
Preview documentation changes for this PR: https://eui.elastic.co/pr_5931/ |
Preview documentation changes for this PR: https://eui.elastic.co/pr_5931/ |
Closing this test PR, Greg turned off emotion source maps in main and the original PR (#5895) has been updated accordingly |
Testing