-
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
Table styles #137
Comments
Was added in a previous PR #117. I do like that you change the border color to the off blue when selected though. We should definitely do that as it reads better. 👍
Do you mind if we address this in the separate ticket #64? Along with the switch changes here? Makes it easier to focus on the table questions your bring up.
The reason I started with the airy tables is because I'm extremely worried about people copy / pasting code and munging margins around things. The more lines added to the layout the easier it is to read that the lines are spaced weirdly. This is also important because our tables are almost always already "contained" by panels. So you end up with this weird double border (are the left/right margins matching the bottom ones...etc) around everything. It weighs things down even if it might look good on its own. I wouldn't be opposed to making this a non-default option though. I think your styling for it looks great, I'm more just worried about it as the "works in most places" usage. For example, I would never want a small table (say in the index pattern selection page) to have this really heavy table in it, distracting from the other elements on the page, or in a spy...etc).
Think this looks good when the table has the borders, but weird when it doesn't. What I do admit is that our focus state for table heading selection is super ugly and needs to be fixed in both. Likely the active coloring needs to be around the text, even if the hitbox is the cell. |
Thanks for the great feedback @snide! @gjones @formgeist @Adrian-J Thoughts on this? |
Yeah I hate to be boring but I kind of echo Dave's thoughts on this. I'm weary of adding a background color to the head or introducing a table border as both things tend to add visual weight and prominence. In Cloud we have a lot of pages with multiple tables and I could forsee this approach adding up to a busy aesthetic with competing elements. I like the what Dave refers to as the airy tables because they're clean and feel light (if that makes any sense??). I think it would be great to have as an alternate style though. I agree with you that selected rows need a hover state and really like the colour you've chosen above. |
Maybe we can add a |
I completely agree, you're both spot-on about this. @bevacqua To your point, I'll open a separate PR specifically for this "skin" so that we discuss the props and interface there. As a side benefit this way this change will be isolated into its own commit which we can easily revert it if we don't have any use cases for it. |
Yeah, for what it's worth I like it and maybe it should even be the default prop, but easily turned off with classNames({
'euiTable--skinHeavy': skin === 'heavy'
}); EuiTable.defaultProps = {
skin: 'heavy'
}; |
Late to the party, and will just be echoing Dave and Gareth's comments and suggestions 👍 |
@cjcenizal I also like what we have right now, feels fresh and clean. With so many different styles it feels chaotic and difficult to read. |
Closing this out. Selected row hovering and checkboxes were added / addressed. Other issues (bordering, headers) had consensus. |
In elastic/kibana#14471, I suggested some improvements to tables:
The text was updated successfully, but these errors were encountered: