-
Notifications
You must be signed in to change notification settings - Fork 377
feat(table): Add fullscreen demo for compact variant #7338
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-7338.surge.sh A11y report: https://patternfly-react-pr-7338-a11y.surge.sh |
kmcfaul
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 just needs a rebase
nicolethoen
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.
I notice that the core demo includes bottom pagination. I wonder if we'd usually recommend that a table with pagination in the toolbar also includes it at the bottom, @mcarrano?
Generally yes. It gives the user the ability to click to the next page from either place without needing to scroll the page. |
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.
LGTM. 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.
This is more of a general comment and not a blocker. The pagination controls do not match what is in the page. The same is true for core.
@mcarrano does this matter?
|
@tlabaj Yeah, I noticed that also when I looked at this yesterday and decided to not comment on it. Ideally I think we should have a standard table/data set that we use for all these demos that contains a good number of data records (like 50-100?) and with proper working pagination. Then that could be used as a common starting point for all demos on a table. If you agree, should we open an issue for this? Maybe we need to create some sample data to use for this. What form should that take? |
|
@mcarrano that is a good idea. We could create some canned data that we can use in all out examples. For react the dat would maybe live alongside out dashboard wrapper. We would be able to import it into our demo code. I will open an issue for the react part. If you want some more meaningful data maybe someone could populate a spreadsheet, we could take that data and convert it into an object that our component needs.. React issue: #7384 |
|
@tlabaj @mcarrano +1, sounds like a great plan! |
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! Just a small nit - any toolbar that spans the full width of a page container like that should set usePageInsets so the content in the toolbar aligns with the content in page sections and the overall page chrome. Notably what this does is add a default left/right padding of 16px, then it changes to 24px > 1200px viewport width. If you resize the page, you'll see that the header, navigation, page sections, table, data list (probably other things, too) all have this responsive padding change.
|
Great idea @mcoker - this logic lives in I left a comment on #7292 (comment) regarding creating a separate issue/epic to align the What do you think of opening up a |
|
@jenny-s51 I opened an issue for the wrapper |
What: Closes #7309