Skip to content

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

Closed

Description

@citydean

#17377

Describe the Bug

The previous/next pagination arrows in the admin list view are icon-only buttons with no accessible name. Screen-reader users hear "button" with no indication of direction or purpose. axe-core reports this as a critical button-name violation.

Rendered markup, stock admin list view:

<button class="clickable-arrow clickable-arrow--is-disabled clickable-arrow--left" disabled type="button"></button>
<button class="clickable-arrow clickable-arrow--right" type="button"><svg class="icon icon--chevron" …></svg></button>

Root cause (verified on main)

ClickableArrow's only child is <ChevronIcon />, with no aria-label and no visually-hidden text:

return (
<button
className={classes}
disabled={isDisabled}
onClick={!isDisabled ? updatePage : undefined}
type="button"
>
<ChevronIcon />
</button>
)
}

return (
  <button
    className={classes}
    disabled={isDisabled}
    onClick={!isDisabled ? updatePage : undefined}
    type="button"
  >
    <ChevronIcon />
  </button>
)

An icon-only button with no text content and no ARIA label has no accessible name.

Link to the code that reproduces this issue

The permalink above — this is stock admin markup, not configuration-dependent, so a scaffolded repo would only re-render Payload's own ClickableArrow. The file is unchanged on main at 6981aca. Happy to push a create-payload-app -t blank repo if you'd still like one; it would be the default template with no changes.

Reproduction Steps

  1. pnpx create-payload-app@latest -t blank
  2. Seed a collection with more than one page of documents.
  3. Open its list view and inspect the pagination arrows — or run axe-core.
  4. Observe neither button has an accessible name.

Which area(s) are affected?

area: ui

Environment Info

payload:         3.84.1
@payloadcms/ui:  3.84.1
Next.js:         16.2.6
Node:            25
Browser:         Chrome 141 (headless)
axe-core:        4.12.1

Root cause verified present in main at 6981aca.

Possible fix

An aria-label derived from direction ("Previous page" / "Next page") would resolve it. ChevronIcon could take aria-hidden at the same time, since the label would then carry the meaning.

Happy to open a PR if the direction is welcome.

Asana fields

  • Bug Product Area: Payload - CMS
  • Priority SLA: ↘️ Low
  • SLA expires on: 2027-07-17T00:00:00.000Z
  • Eng Team: Payload
  • Payload Area: UI
  • Payload Priority: Low
  • (Payload Support) Type: Feature
asana-to-linear:asana:task:1216648655535648

Activity

  1. added
    area: ui
    on Jul 17, 2026
  2. 1yakub commented on Aug 5, 2026

    @1yakub

    I'd like to take this one. Planning to give ClickableArrow an accessible name from the existing general:previous and general:next translation keys, so no new translation strings are needed.

  3. JarrodMFlesch commented on Oct 27, 2026

    @JarrodMFlesch
    Contributor

    Resolution

    Fixed on the 4.x/main branch by payloadcms/payload#18405, which added translated accessible names to the previous/next pagination buttons in ClickableArrow. Verified in the admin UI on 4.0.0-beta.4. PR #17663 was not the merged fix.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: ui

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions