[75258] Hide pagination buttons when they are disabled - #463
Conversation
🦋 Changeset detectedLatest commit: 876c8ad The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Uh oh! @bsatarnejad, at least one image you shared is missing helpful alt text. Check your pull request body to fix the following violations:
Alt text is an invisible description that helps screen readers describe images to blind or low-vision users. If you are using markdown to display images, add your alt text inside the brackets of the markdown image. Learn more about alt text at Basic writing and formatting syntax: images on GitHub Docs.
|
HDinger
left a comment
There was a problem hiding this comment.
I know that it was not specified but what do you think about hiding the Pagination completely when there is only one page? Currently there is only one button shown which basically does nothing, so there is no real value in it imho.
Primer seems to recommend that as well: https://primer.style/product/components/pagination/guidelines/#best-practices |
582224f to
a1e5ba2
Compare
| "@openproject/primer-view-components": patch | ||
| --- | ||
|
|
||
| [75258] Don't render the pagination component when there is only one page |
There was a problem hiding this comment.
Nitpick: I think this is only part of the truth.. The bit about hiding buttons when you are at the edge of the pagination is missing.
|
What are you trying to accomplish?
Screenshots
Before:

After:

Closes https://community.openproject.org/wp/75258
Risk Assessment