Skip to content

Improve cursor pagination template accessibility in browsable API#9905

Merged
browniebroke merged 3 commits intoencode:mainfrom
kosbemrunal:improve-pagination-accessibility
Apr 1, 2026
Merged

Improve cursor pagination template accessibility in browsable API#9905
browniebroke merged 3 commits intoencode:mainfrom
kosbemrunal:improve-pagination-accessibility

Conversation

@kosbemrunal
Copy link
Copy Markdown
Contributor

This PR improves the accessibility of the pagination template by:

  • Adding aria-label attributes for better screen reader support
  • Adding rel="prev" and rel="next" for semantic navigation
  • Adding aria-disabled and tabindex="-1" for disabled states

These changes improve accessibility without modifying existing functionality or behavior.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Improves the DRF pagination “previous/next” template’s accessibility metadata by adding ARIA attributes and semantic link relations to help assistive technologies interpret pagination controls.

Changes:

  • Add rel="prev" / rel="next" to pagination links.
  • Add aria-label to the previous/next links.
  • Add aria-disabled="true" and tabindex="-1" for disabled pagination states.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@browniebroke browniebroke changed the title Improve pagination template accessibility with aria attributes and re… Improve CursorPagination template accessibility Mar 28, 2026
@browniebroke browniebroke changed the title Improve CursorPagination template accessibility Improve cursor pagination template accessibility in browsable API Apr 1, 2026
@browniebroke browniebroke merged commit 7e970cd into encode:main Apr 1, 2026
7 checks passed
@browniebroke
Copy link
Copy Markdown
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants