react-paginate v8.0.0 Release Notes
-
- ✂ Remove button role for links with an href (see: https://github.com/AdeleD/react-paginate/pull/390)
- ➕ Add a rel attribute on previous page, current page and next page controls. They are respectivement customizable thanks to props
prevPageRel
,selectedPageRel
andnextPageRel
. To disable the rel attribute, set them tonull
. (see: https://github.com/AdeleD/react-paginate/pull/391) - 0️⃣ A new prop
disabledLinkClassName
has been added. It allows to add a custom class on disabledprevious
andnext
controls. Default toundefined
(no class added). - 👀
tabindex
is now set to-1
on disabled controls (disable previous/next buttons; active page button). (see: https://github.com/AdeleD/react-paginate/issues/219) - ➕ Add a warning when providing an
initialPage
prop value that is greater than the maximum page index frompageCount
prop. - ➕ Add a warning when providing a
forcePage
prop value that is greater than the maximum page index frompageCount
prop. - 👀 The
href
generated fromhrefBuilder
prop is now also set on active page control<a>
tag. (see #242) - A new prop
hrefAllControls
has been added. It allows to enablehrefBuilder
for all controls. - 🛠 Fix page range of 2 when first page is selected. (see https://github.com/AdeleD/react-paginate/issues/307)
- 🛠 Fix the breaking algorithm to not create breaks for only one page (see: https://github.com/AdeleD/react-paginate/issues/270)