-
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
[EuiTreeView] [EuiTreeViewNode] changed label PropType in tree_view to ReactNode #4352
Conversation
Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually? |
💚 CLA has been signed |
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.
Thanks @Dishebh. Outside of signing the contributor agreement, you'll need to add a changelog to this fix. Here's a suggested one. Will merge on changes.
- Changed `label` type from `string` to `ReactNode` in `EuiTreeViewNode` ([#4352](https://github.com/elastic/eui/pull/4352))
jenkins test this |
Preview documentation changes for this PR: https://eui.elastic.co/pr_4352/ |
) : null} | ||
<span | ||
ref={ref} | ||
title={innerText} |
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.
@myasonik I believe the title here is not needed, as it is the snapshot of the text content in this element anyway?
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.
We don't need it for any a11y reasons
jenkins test this |
1 similar comment
jenkins test this |
Sorry, only team members can kick off a jenkins build. I'll get one started for you. Jenkins, test this |
The |
The
|
@Dishebh I've pushed some changes directly to your branch to resolve that test.
I added a fallback value
I also modified a utility method in EuiI18n so future occurrences of |
jenkins test this |
Preview documentation changes for this PR: https://eui.elastic.co/pr_4352/ |
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.
Changes LGTM, pulled & tested locally by passing a JSX element as the label.
Thanks a lot, @chandlerprall, will surely look at the changes you made. |
Thank you guys for this change 👏 |
Summary
Fixes #4323
Changed
label
PropType in tree_view toReactNode
Checklist