-
Notifications
You must be signed in to change notification settings - Fork 217
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
fixed table header chevron layout shift #2766
Conversation
🦋 Changeset detectedLatest commit: dfc035a The changes in this PR will be included in the next version bump. This PR includes changesets to release 7 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
The layout shift looks a lot better, but unfortunately we'll need to make sure the column title and the values in the column are aligned - for example in a numeric column they should both be right aligned, so any gap you're applying to the column title should also be applied to the individual cells in the column. That might work well if we also reduce the left/right padding in the cells, and let the new gutter use that space |
This looks good in general, but there's a few cases where I think we need to adjust. Before sending over those, just a quick clarifying question - is |
Column Groups example i removed wraptitles from the code example. I see I forgot to remove it from the code block. It seems not necessary since we have wraptitle example just below |
Here's a few scenarios that look a bit off: I think the solution is some combo of:
|
Sounds good ill get these out right now |
Hey @hughess made some of your changes, sorry couldn't finish these last night, wanted to clean up some things before showing it to you
without the current margin left, chev will stick next to header text with many columns Table cell padding-right was 19px, reduced to 12px other datatables |
Ah, I think because we don't have lines around cells, the shading implementation ends up looking out of place. I think we'll need to stick with just the icon to avoid highlighting the visual difference between the title cell and the row cells. What happened to the alignment behaviour on column titles? Looks like when |
ah i c, to fix the wrapped titles I wrapped them in a flex box structure to get the chevron to behave properly. ill fix
|
instead, just put the packages in as strings when building the template
fixes #2711 |
…b/w chev and TH text
conflicts resolved in #2830 |
Description
First page is new datatable, second page is old datatable
https://www.loom.com/share/5608209a1dfe479f89c7dbb3475de4f1?sid=37b1a37f-9c53-4c2b-9c68-18f4da575669
Checklist