-
Notifications
You must be signed in to change notification settings - Fork 377
feat(table): update sortable demo to align with core #7292
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
Conversation
|
Preview: https://patternfly-react-pr-7292.surge.sh A11y report: https://patternfly-react-pr-7292-a11y.surge.sh |
|
Is this demo the one I'm supposed to be checking for this PR? https://patternfly-react-pr-7292.surge.sh/components/table#composable-sortable---custom-control |
wise-king-sullyman
left a comment
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.
Is this the right core demo to be looking at? https://www.patternfly.org/v4/components/table/html-demos/sortable
If so I'm not sure if these differences are substantive or not, but I notice a handful of differences between the demos still.
Areas of difference:
- Masthead logo
- Masthead toolbar items
- Breadcrumbs below the masthead
- Items in the toolbar group
- Checkboxes in the rows
- Pagination at the bottom of the table
|
I'm seeing a |
|
I'm still seeing a handful of differences in the toolbars, specifically at larger window widths. I.e. The title and description are also different, but I think that the title and description in this demo should be copied into the core demo if anything. I'm not sure if those are significant since this demo seems to focus on small window usage. |
|
Thank you for your feedback @wise-king-sullyman ! I've added some changes that should make the toolbar and dashboard header align with the core demos more closely. Per @tlabaj and @mcarrano, we are separating the implementation of additional toolbar logic from these table PRs. We will address that in an upcoming sprint as these must be resolved first:
Please kindly re-review when you have a moment so we can prioritize getting these table changes in for the release 🙂 |
wise-king-sullyman
left a comment
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.
If the additional toolbar differences will be resolved in future issues this looks perfect 🔥
tlabaj
left a comment
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.
Looks pretty good. Only thing I am seeing is the the "Responsive action hidden on small button" is not getting hidden on small for me.
c335b22 to
03e34f9
Compare
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.
@jenny-s51 this still is not working correctly. I am also noticing that the structure does not match core. Core's toolbar seems to be in a card and this one is not. I am also seeing other discrepancies lie that toolbar content section in core has "pf-m-nowrap" applied.
8639062 to
b332158
Compare
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.
|
Good catch @tlabaj @jenny-s51 for reference, this core demo shows how sorting should behave when the view port shrinks: https://www.patternfly.org/v4/components/table/html-demos/sortable/ Basically a sort menu is exposed in the toolbar after the table converts to its stacked orientation. |
mcarrano
left a comment
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.
This looks great. Thanks @jenny-s51 !
tlabaj
left a comment
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.
mcoker
left a comment
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.
This LGTM, left a few comments but none are blockers.
becebbb to
30d6637
Compare
|
I agree @jenny-s51 updating the wrapper is outside the scope of this PR. I have created this issue #7429 |
mcoker
left a comment
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.
Looks like the sort icon is hidden on xs (< sm breakpoint) viewports - I think this line can just be updated to {{ md: 'hidden' }}?
1e71049 to
e1ca0ec
Compare
5b5dfcd to
5668a56
Compare
mcoker
left a comment
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! Great job on this!!
tlabaj
left a comment
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.
Looks great Jenny!
|
Your changes have been released in:
Thanks for your contribution! 🎉 |







What: Closes #7272
Additional issues: