Skip to content

Improve CursorPagination template accessibility#9905

Open
kosbemrunal wants to merge 3 commits intoencode:mainfrom
kosbemrunal:improve-pagination-accessibility
Open

Improve CursorPagination template accessibility#9905
kosbemrunal wants to merge 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
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