-
Notifications
You must be signed in to change notification settings - Fork 842
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
[EuiDataGrid] Enforce a cell popover if cell actions are present #5710
[EuiDataGrid] Enforce a cell popover if cell actions are present #5710
Conversation
df5656e
to
ae5a918
Compare
Preview documentation changes for this PR: https://eui.elastic.co/pr_5710/ |
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.
Only comment is on the changelog entry being a breaking change, otherwise this LGTM after testing in the preview build
Unfortunately EuiDataGrid isn't really aware of the cell contents, it simply renders whatever is passed in What we could do is change that specific footer example to hide |
Preview documentation changes for this PR: https://eui.elastic.co/pr_5710/ |
@cchaos I'm going to open a separate PR for that docs example change as I found this additional hilarious footer-related bug at the same time |
Preview documentation changes for this PR: https://eui.elastic.co/pr_5710/ |
- this allows us to `component.find()` by the 'MockAction' name, which future unit tests will be using to determine the # of actions rendered
- Add intro paragraph to cell popovers page, explaining the UX purpose of the expansion popover - Fix incorrect cellActions example in main datagrid doc - Fix variable casing on source code
+ add more comments/documentation to note this behavior since I missed it the first time + simplify hasCellActions to just use isExpandable, now that isExpandable accounts for cellActions
814332f
to
63cd8d2
Compare
Preview documentation changes for this PR: https://eui.elastic.co/pr_5710/ |
Preview documentation changes for this PR: https://eui.elastic.co/pr_5710/ |
Summary
This is essentially the cherry-picked second half of #5675, along with several misc setup/cleanup commits that I grabbed just to get in now (follow along by commit to review them).
Since the first half of #5675 is on hold due to design decisions/discussion, I figured we might as well get this fix+cleanup now, since it potentially affects accessibility/keyboard users.
Checklist
- [ ] Check against all themes for compatibility in both light and dark modes- [ ] Checked in mobile- [ ] Checked in Chrome, Safari, Edge, and Firefox- [ ] Props have proper autodocs and playground toggles- [ ] Checked Code Sandbox works for any docs examples