Skip to content

fix(ui): add accessible names to pagination arrow buttons - #17663

Closed
1yakub wants to merge 2 commits into
payloadcms:mainfrom
1yakub:fix/pagination-arrow-accessible-name
Closed

1yakub wants to merge 2 commits into
payloadcms:mainfrom
1yakub:fix/pagination-arrow-accessible-name

Conversation

@1yakub

@1yakub 1yakub commented Aug 5, 2026 •

Copy link
Copy Markdown

The previous and next pagination arrows in the admin list view are icon only buttons. Their only child is the chevron icon, so there is no text and no aria label, which means no accessible name at all. Screen readers just say "button", and axe flags it as a critical button-name violation.

Fixed by setting aria-label from the direction prop, using the general:previous and general:next keys that already exist, so no translation files change. Both Pagination and SimplePagination get it from this one change.

Closes #17377

@AlessioGr
AlessioGr enabled auto-merge (squash) August 5, 2026 22:17
@1yakub

1yakub commented Aug 21, 2026

Copy link
Copy Markdown
Author

The only red check here is int-mongodb-atlas (3/3), which looks unrelated to this aria-label change. Could someone re-run that job? Happy to rebase if that is easier.

@JarrodMFlesch

Copy link
Copy Markdown
Contributor

The pagination arrows now have accessible names on main through #18405. If you still need this fix on 3.x, feel free to open a new PR targeting the 3.x branch.

auto-merge was automatically disabled October 27, 2026 12:35

Pull request was closed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Admin pagination: previous/next arrow buttons have no accessible name

3 participants