Pagination shows too many pages relative to siblingCount #1890
-
🐛 Bug reportThe value of 💥 Steps to reproduce
🧐 Expected behaviorI'd expect the 🌍 System information
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This is by design. Sibling count is taken into account when we get to the “ellipsis” mode and needs to render at least one item to the left or right. For UX and SEO reasons, it’s recommended to render the first, last, previous button, and next. Adding to that the sibling count, gets to around 5-6 items shown per time. This prop doesn’t strictly mean “always show X items”, what you’re looking might need to be handled in a different way. Sibling and Boundaries are two properties that a pagination could have to absolutely control the number of visible items. I don’t think we implement boundaries at the monent. |
Beta Was this translation helpful? Give feedback.
This is by design. Sibling count is taken into account when we get to the “ellipsis” mode and needs to render at least one item to the left or right.
For UX and SEO reasons, it’s recommended to render the first, last, previous button, and next. Adding to that the sibling count, gets to around 5-6 items shown per time.
This prop doesn’t strictly mean “always show X items”, what you’re looking might need to be handled in a different way.
Sibling and Boundaries are two properties that a pagination could have to absolutely control the number of visible items. I don’t think we implement boundaries at the monent.