Skip to content

Commit

Permalink
Remove 'rel' attribute for disabled pagination
Browse files Browse the repository at this point in the history
  • Loading branch information
francinelucca authored Jan 16, 2025
1 parent 45aad34 commit 8c0c656
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/react/src/Pagination/model.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export function buildComponentData(
key = 'page-prev'
content = 'Previous'
if (page.disabled) {
Object.assign(props, {rel: 'prev', 'aria-hidden': 'true'})
Object.assign(props, {'aria-hidden': 'true'})
} else {
Object.assign(props, {
rel: 'prev',
Expand All @@ -164,7 +164,7 @@ export function buildComponentData(
key = 'page-next'
content = 'Next'
if (page.disabled) {
Object.assign(props, {rel: 'next', 'aria-hidden': 'true'})
Object.assign(props, {'aria-hidden': 'true'})
} else {
Object.assign(props, {
rel: 'next',
Expand Down

0 comments on commit 8c0c656

Please sign in to comment.