-
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
[EuiTableHeader] Add prop to remove <tr>
#4465
Conversation
Issue number 4239 Ability to unregister the tooltip plugin added Updated the editor example doc to show how to use it
Added the ability to unregsiter inbuilt UI plugins Addresses issue 4239 Signed-off-by: k-kumar-01 <kushalkumargupta4@gmail.com>
Signed-off-by: k-kumar-01 <kushalkumargupta4@gmail.com>
Default UI Plugins initialized Warning added on injecting tooltip plugin Signed-off-by: k-kumar-01 <kushalkumargupta4@gmail.com>
Issue number 4183 Signed-off-by: k-kumar-01 <kushalkumargupta4@gmail.com>
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? |
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 for tackling this one @K-Kumar-01 . There are still some more necessary things to complete this PR, I'll update the checklist in PR summary by crossing out the ones that aren't necessary. But at top level, we'll at least need a new test for this prop and a changelog entry.
As a side-note, when creating new PR's it's always best to start a new branch from the latest |
I will keep in mind the next time I make a PR.:) |
@cchaos I did some test and finally, I have 2 results: On using render, the test fails with the error as shown I do not know much about tests so I do not know if we can use shallow or not. |
@K-Kumar-01 Can you commit what you currently have? I'm guessing it has to do with the actual |
Signed-off-by: k-kumar-01 <kushalkumargupta4@gmail.com>
@cchaos I have committed the recent changes. Let me know if there are any changes required. |
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.
So it looks like the way our testing suite is managed, is there is some level of DOM validation happening when creating snapshots. So that meant, when you were providing a simple string
as the child of a <tr>
, it said "nope 😆 " and appended the invalid child outside of the <tr>
instead. So I fixed up the tests by passing the valid DOM structure and it correctly renders the snapshots.
I also updated the name of the prop.
👍 LGTM
Jenkins, test this |
1 similar comment
Jenkins, test this |
Thanks a lot for the tests. I will try my best to write learn writing tests 😃 and also ensure to pass Valid DOM structure 😬 |
Oh no worries. It caught it me off guard too and had to play around with the Jenkins, test this |
Preview documentation changes for this PR: https://eui.elastic.co/pr_4465/ |
Jenkins, test this |
Preview documentation changes for this PR: https://eui.elastic.co/pr_4465/ |
Summary
Issue number #4183
Added the ability to remove the
<tr/>
tag.Checklist
[ ] Added documentation[ ] Checked Code Sandbox works for the any docs examples[ ] Checked for breaking changes and labeled appropriately[ ] Checked for accessibility including keyboard-only and screenreader modes