Skip to content

[EuiText] Fix className not correctly inheriting when both color and textAlign are passed#6027

Merged
cee-chen merged 2 commits intoelastic:mainfrom
cee-chen:text/classnames
Jul 5, 2022
Merged

[EuiText] Fix className not correctly inheriting when both color and textAlign are passed#6027
cee-chen merged 2 commits intoelastic:mainfrom
cee-chen:text/classnames

Conversation

@cee-chen
Copy link
Copy Markdown
Contributor

@cee-chen cee-chen commented Jul 5, 2022

Summary

closes #6023

Even our own euiText className wasn't being correctly inherited. Apologies for missing this 😬

Before:

After:

Checklist

…`color` and `textAlign` properties are passed

- unfortunately the nested `cloneElement` components appear to not be picking up children.props correctly, so we need to manually pass `className`s to ensure working className merging
@cee-chen cee-chen requested a review from chandlerprall July 5, 2022 18:26
@cee-chen cee-chen enabled auto-merge (squash) July 5, 2022 18:32
@kibanamachine
Copy link
Copy Markdown

Preview documentation changes for this PR: https://eui.elastic.co/pr_6027/

@cee-chen
Copy link
Copy Markdown
Contributor Author

cee-chen commented Jul 5, 2022

jenkins test this

@kibanamachine
Copy link
Copy Markdown

Preview documentation changes for this PR: https://eui.elastic.co/pr_6027/

@cee-chen cee-chen merged commit 6054e9b into elastic:main Jul 5, 2022
@cee-chen cee-chen deleted the text/classnames branch July 5, 2022 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

EuiText doesnt render className

4 participants