-
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
[EuiDataGrid] Redesigns feature branch #7382
Conversation
Co-authored-by: Cee Chen <constance.chen@elastic.co>
Co-authored-by: Cee Chen <549407+cee-chen@users.noreply.github.com> Co-authored-by: Cee Chen <constance.chen@elastic.co>
@MichaelMarcialis Do you mind giving EuiDataGrid a final design pass and approving if everything looks good to you? |
Hey @cee-chen , nice work! The only issue I have run across is this one where the styles appear broken when a cell is expanded: |
- cell actions bg color was missing on popover open - always defaulting to color primary fixes the issue
This comment was marked as resolved.
This comment was marked as resolved.
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.
@ryankeairns: I suggested this approach to avoid having it appear as shown in this quick mockup below: I'm not a fan of the weird indents the rounded corners create in this approach. I also don't like that the bottom edge of the action background isn't flush with the inner edge of the cell border (as it feels misaligned). |
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 so much for putting this together, @cee-chen! These changes look and work wonderfully. I'm not seeing anything critical that needs to be addressed before merging, so I'm approving now to avoid blocking you. I only have a few comments below regarding minor things I noticed (which can be split off as separate issues if you prefer):
-
In the case of an excessively narrow data grid column, while hovering/focusing a cell with more than two cell actions, the actions container correctly renders wider than the cell it originates from. The only thing I'd like to see is the bottom-right corner of the actions container to have a 2px border radius (or bottom-left corner if right-aligned cell contents). This will more closely match the designs.
-
In the case that a cell doesn't have any cell-based actions attached, should we supress/remove the hover/focus inner cell borders? Since no actions will eminate from it, I'm not sure if we need it. But I can see an argument being made for consistency with other cells, so wanted to ask you and @ryankeairns.
-
For the data grid column heading popovers, would it be possible to have the popover alignment and arrow appear as if it is eminating from the
boxesVertical
icon that appears on hover/focus? I know it's a super minor nitpick, but I think that may end up looking nicer than situations like the screenshot below, where it appears to be eminating from whitespace.
Those are great suggestions, thanks Michael! I'll take a run at at the 1st and 3rd bullet point here later today and post the screenshots.
My 2c is I'd rather keep it for consistency. |
- this prevents a visual bug when the popover is open *above* the cell instead of above - it also fills the gap that occurs between the cell actions and the popover
- this is actually cleaner CSS anyway, win/win!
Not sure if you're still around for the day @MichaelMarcialis - if not no worries, I'll go ahead and merge this at the end of my work day. If you notice anything else, please don't hesitate to mention it even post-merge, we can always open a new follow-up PR! Also noting for posterity - I normally wouldn't rush this as much, but 8.12 FF and team travel is causing an artificial compression of timelines 🤞 |
I'm not totally sure why it should? Do you mind explaining more? 🤔 |
Wait, am I missing something? Isn't that what Marcialis was asking for? |
Ryan yarned with me on this on Slack, and I was indeed missing something! Should be all fixed as of the last commit. We also had a good yarn about the controller UX for Read Dead Redemption 2, Horizon, and Baldur's Gate 3 😎 |
Preview staging links for this PR:
|
💚 Build Succeeded
History
|
Summary
This is a feature branch of 3 separate
EuiDataGrid
redesigns:Each individual PR should have already been fairly thoroughly code reviewed (see each individual link for more screenshots, context, etc.). This feature branch PR is intended primarily for a final design review and QA pass of all combined features / the whole EuiDataGrid component.
QA
General checklist
- [x] Checked for accessibility including keyboard-only and screenreader modesNOTE: There are some issues here, but they're not specific to the changes made, and already exist in production