Document bar (.doc-controls__content) overflows a 375 px viewport, clips "Created" and fails axe scrollable-region-focusable

Open Beginner friendly
#19,690 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@stussysenik is already working on this.

Since Nov 18, 2026.

  • #19695 by @stussysenik — open

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
78/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active

Research direction

Find the admin document view styles for .doc-controls__content and its row children, then reproduce the issue at a 375 px viewport using a document that shows the Created timestamp. Check whether the content can wrap without clipping, and run axe to confirm the scrollable-region-focusable violation is gone. Done when the text is reachable and visible at that width and the accessibility rule passes.

Written by the indexing model from the issue text.

Description

area: ui Bug
Describe the Bug

At a 375 px wide viewport, the document bar on a document view (.doc-controls__content) is wider than the viewport. The text "Created: ..." is clipped at the edge. The region scrolls horizontally with a pointer only, so keyboard users cannot reach the clipped content, and axe reports the rule scrollable-region-focusable ("Scrollable region must have keyboard access", WCAG 2.1.1) on it.

Link to the code that reproduces this issue

No separate repository. It reproduces on a fresh pnpx create-payload-app@latest -t blank project; see the steps below.

Reproduction Steps
  1. Create a project with pnpx create-payload-app@latest -t blank (Payload 3.93.0).
  2. Use any collection that shows timestamps in the document bar (the default users collection works, or any collection with versions enabled). For the narrowest case, view a document with only read access, so the bar holds the status and the "Last Modified" / "Created" text and no action buttons.
  3. Open the document view in the admin panel, e.g. /admin/collections/users/<id>.
  4. Set the viewport to 375 px wide (browser dev tools device mode).
  5. Observe that .doc-controls__content extends past the viewport and "Created: ..." is cut off.
  6. Run axe (the browser extension, or @axe-core/playwright) on the page. The rule scrollable-region-focusable is reported on .doc-controls__content.
Expected behaviour

The document bar fits a 375 px viewport, with its content wrapping onto further lines, or, if it must scroll, the scrollable region is reachable by keyboard.

Actual behaviour

The bar is wider than the viewport, the end of its content is clipped, and it can only be scrolled with a pointer. axe flags scrollable-region-focusable.

Suggested fix

Either of these would resolve it:

  • Allow the content to wrap at narrow widths, e.g. flex-wrap: wrap on .doc-controls__content (and its row children), so nothing needs to scroll.
  • If horizontal scrolling is intended, make the region focusable with tabindex="0" (plus a suitable role and accessible name) so it can be scrolled from the keyboard.
Which area(s) are affected?

area: ui

Environment Info
Payload: 3.93.0
Next.js: 16
React: 19
Node.js: 24.22.1
Browser: Chromium, viewport 375 px wide
Dominant language
TypeScript
Stars
45.8k
Forks
4.4k
Avg merge
2d 16h
Merged PRs (30d)
251

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from payloadcms/payload

All issues in payloadcms/payload

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.