-
Notifications
You must be signed in to change notification settings - Fork 67
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
feat(table): added sorting, cell types, actions, and inputs #2444
Conversation
🦋 Changeset detectedLatest commit: a6151bd The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
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.
Took a quick pass. Looks good overall, but I had a concern about the amount of css variables we added.
@ianmcburnie , this is fixed. |
To add (forgot to be explicit in my last comment): Im fine approving it other than that alignment thing, looks ready to go to me! |
Great catch!!! I fixed it. Technically, there is a max cell width, so it's not an indeterminate amount of space, but it was nowhere near the max; was a real issue. |
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.
LGTM! Nice job
Could we please add an introductory sentence for the sections "Compact Density Table" and "Relaxed Density Table"? I think those modifiers just affect the spacing, right? Generally I think we should always have a sentence of explanation/introduction after a heading. |
I notice that the Basic Default Table includes sortable column headers. How do we feel about making the basic version non-sortable and introducing the concept of column sort afterwards (i.e. create a new example section specially for that). Generally I like to layer in the complexity/features. It might make sense in this case also. |
For the introduction, I'd be tempted to just align with the MDN text:
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/table We can probably remove this text as I don't see it providing much value:
I would change this sentence:
to something like this:
I've been meaning to sweep through the entire docs to align with a single style & tone of voice. |
I thought about doing something similar, but the module's outermost element is not a table. I would actually prefer we keep it as is to allow more flexibility. Lining up modules directly with I'll change the language to be more inline with what you have, but will avoid reference to the |
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.
Very nice!
Fixes #1900
Description
This PR is Iteration 2 of the Table module. It includes
Notes
The BEM structure was adjusted to better align with the markup structure.
Screenshots
Checklist