-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Data views: Update pagination spacing in List layout #57670
Conversation
Warning: Type of PR label mismatch To merge this PR, it requires exactly 1 label indicating the type of PR. Other labels are optional and not being checked here.
Read more about Type labels in Gutenberg. Don't worry if you don't have the required permissions to add labels; the PR reviewer should be able to help with the task. |
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.
👍
Size Change: +55 B (0%) Total Size: 1.69 MB
ℹ️ View Unchanged
|
For what it's worth, I still think there are some opportunities for a different design that has the page selection element much less prominent. IMO it can be as simple as |
@jasmussen those patterns would cause the next/previous buttons to jump around as you navigate due to the variable width of the numbers.
That's essentially what we have. SelectControl is used as it offers a better experience for keyboard navigation (you can effectively type to search which is handy for longer lists). However SelectControl doesn't have many display options. It would be nice to have a way to remove the border, but that becomes separate discussion. Let's open an issue. |
We could still improve the visuals there, omitting the "Page", and styling the select control to have a much lighter footprint. Right now it awkwardly spaces the number in the dropdown. |
Small follow-up to #57644, where pagination spacing was updated to bring the page selector closer to the next/previous buttons. This works well in 'full-width' layouts like Grid / Table, but in the List layout it looks a little clumsy due to the narrower width.
In this PR the page selector is aligned left in List layout which is more balanced while still being close to the next/previous buttons.