feat(table): Add fullscreen demo for compact variant#7338
feat(table): Add fullscreen demo for compact variant#7338tlabaj merged 14 commits intopatternfly:mainfrom
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.
LGTM just needs a rebase
nicolethoen
left a comment
There was a problem hiding this comment.
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. |
|
@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.
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