-
Notifications
You must be signed in to change notification settings - Fork 377
chore(Table): update sticky header table data #7851
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-7851.surge.sh A11y report: https://patternfly-react-pr-7851-a11y.surge.sh |
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 looking good @jenny-s51 . Just a couple of small asks...
- Is it possible to give the URL text in the last column link styling?
- As I mentioned on another PR, if the status column could display these as labels vs text, that would be preferrable, but not a necessity.
Here's a mockup of what this ideally would look like: https://marvelapp.com/prototype/2ff7ahj6/screen/87992956
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.
Since all these PRs us the same data, they would all have the same comments about its formatting as I mentioned in this comment:
#7857 (comment)
#7857 (comment)
#7857 (comment)
05d2d92 to
7fc240a
Compare
7fc240a to
509c9fe
Compare
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.
Is it possible to use the dashboard wrapper in this demo?
if not, should we opt for the Masthead rather than the PageHeader?
jenny-s51
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.
Nice catch @nicolethoen ! Updated to use the DashboardWrapper.
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.
LGTM
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.
Could you also clean up the unused imports?
|
@jenny-s51 this looks much better, but just one question- What controls the column widths? It seems odd that the first 3 columns get so much space and then the columns at the end are very tight forcing 'Last modified' and 'URL' to wrap. |
|
@mcarrano I added some modifiers to the column widths as suggested by @nicolethoen here: #7857 (review) This was to prevent the "Workspaces" and "Applications" columns from truncating like this (which is what the table would look like without the column width modifiers): WDYT @mcarrano ? Should we use these modifiers? Happy to update as you see fit. |
Could we truncate the urls? so they take up less space and also don't wrap? |
Yes, I think that makes sense. |
jenny-s51
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.
Added the truncate modifier and added fixed widths @mcarrano @nicolethoen:
|
Could we make the location column just a bit wider so those values don't need to wrap? |
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.
Looks great. Thanks for making these changes @jenny-s51 !
|
Your changes have been released in:
Thanks for your contribution! 🎉 |


What: Closes #7358 , towards #7384
Demo link for convenience: https://patternfly-react-pr-7851.surge.sh/components/table/react-demos/sticky-header/