-
Notifications
You must be signed in to change notification settings - Fork 843
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
[EuiBasicTable] Fixed clickable rows not highlighting in sub-tables #4566
Conversation
fixed invalid link (elastic#4520)
[Page layouts] Updates to [EuiSideNav] (elastic#4488)
Fixed disabled text styles in Safari (and iOS) (elastic#4538)
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? |
jenkins test this |
Preview documentation changes for this PR: https://eui.elastic.co/pr_4566/ |
@cchaos can you please review this :) |
Yep, we'll get to it. We appreciate your patience with us. Also, don't forget to start new branches from the latest EUI |
This one is going to require a little more work to test as we don't have an exact example in our docs to test with. At first glance though, the style changes are too heavy handed on the expanded row contents. The row contents should not have the hover affect but keep the shaded background color constant. Screen.Recording.2021-02-23.at.12.40.20.PM.mp4 |
@cchaos I have made the example of this on my machine. Maybe if you want I can add that to the pr. It will also be good for future. :) |
My only concern with adding this as a specific example is that it's not a great UI pattern so I don't want to necessarily promote it through our docs. But what we've done in the past is push an example up in the PR to make testing easier, but mark it as something to revert before merge. I'd be good with that approach for this PR if you want to just push your docs example with the commit message of |
@cchaos Temporally changed the 1st example for testing. Once you feel okay with it I will revert the change. |
Thanks! Can you also address my previous comment about highlighting the expanded row content? |
Isn't this little contradictory that in one we will be setting the |
So the original issue is about how nesting a table specifically within a collapsible row doesn't get the right row hover behavior. But the fix shouldn't affect how other content currently gets displayed like in the original doc example which is just a description list. By default, expanded row content should be a static gray background (no hover effect). But if a table lives within this expanded row content, it should properly handle it's own row hover behavior. Instead it's getting it's cell background color from the Screen.Recording.2021-02-25.at.01.26.16.PM.mp4 |
@cchaos Done everything you asked for. Hope all good now. :\ |
Jenkins, test this |
Preview documentation changes for this PR: https://eui.elastic.co/pr_4566/ |
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! It looks like this approach works as well. Just some suggestions to cleanup the sass and then be sure to go through the PR checklist.
Co-authored-by: Caroline Horn <549577+cchaos@users.noreply.github.com>
Co-authored-by: Caroline Horn <549577+cchaos@users.noreply.github.com>
Thanks @cchaos for so much help! I will revert the example once you tell me. :) |
@cchaos Should I revert the changes of adding example? |
Jenkins, test this |
Preview documentation changes for this PR: https://eui.elastic.co/pr_4566/ |
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 look good to me. Now just be sure to go through the PR checklist and you can revert the doc change too. Thanks!
This reverts commit a6e2fa3.
… into Dev-EuiTableRow
Reverted the changes @cchaos |
Great, just need to finish up the rest of the PR checklist! See the PR summary. |
Jenkins, test this |
Preview documentation changes for this PR: https://eui.elastic.co/pr_4566/ |
Summary
Fixed the problem to the sub-tables not showing the hover effect.
Fixes #3923
CodeSandBox: https://codesandbox.io/s/row-highlighting-bug-2r55i?file=/src/index.js:252-1582
Checklist
[ ] Props have proper autodocs and playground toggles[ ] Added documentation[ ] Checked Code Sandbox works for the any docs examples[ ] Added or updated jest tests[ ] Checked for breaking changes and labeled appropriately[ ] Checked for accessibility including keyboard-only and screenreader modes