Skip to content

Icon-only buttons in the admin have no accessible name (preview, schedule publish, paste from clipboard) #18877

Closed

Description

@RafalFilipek

Describe the Bug

Several icon-only buttons in the admin panel are announced as just "button" by screen readers and fail axe button-name (WCAG 2.2 SC 4.1.2, Level A):

  • the document preview button: #preview-button
  • the schedule publish button: #schedule-publish-button
  • the upload field "paste from clipboard" button: button.upload__pasteFromClipboard (and the same button in the bulk upload drawer)

Their only label is a tooltip that is mounted while the button is hovered, so there is no name for keyboard or screen-reader users.

Expected:

Each button has an accessible name that matches its tooltip ("Copy", "Schedule Publish", "Paste from clipboard").

Actual:

The buttons have an empty accessible name; axe reports button-name for each one.

Link to the code that reproduces this issue

https://github.com/RafalFilipek/payload/tree/fix/ui-accessible-names

This branch has the proposed fix and component tests (Button, PreviewButton, SchedulePublishButton, UploadDropzoneContent) that fail without it.

Reproduction Steps

  1. Config: a collection with versions: { drafts: { schedulePublish: true } }, admin: { preview: () => '/preview' } and an upload field.
  2. Create and save a document, then open it in the admin.
  3. Inspect the buttons in the accessibility tree (DevTools > Accessibility) or run axe.

Which area(s) are affected?

area: ui

Environment Info

Payload 4.0.0-beta.2, also main at c2c9143de8

Generated by Claude Code

Activity

  1. RafalFilipek commented on Oct 28, 2026

    @RafalFilipek
    ContributorAuthor

    Fixed by #19005

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

Metadata

Metadata

Assignees

Labels

Bugarea: uicreated-by: Contributor

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions