Document bar (.doc-controls__content) overflows a 375 px viewport, clips "Created" and fails axe scrollable-region-focusable
Maintainers usually reply within 1 day
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 78/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- next.js, react, typescript
- Domain
- accessibility, frontend
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
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
- Create a project with
pnpx create-payload-app@latest -t blank(Payload 3.93.0). - Use any collection that shows timestamps in the document bar (the default
userscollection works, or any collection withversionsenabled). 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. - Open the document view in the admin panel, e.g.
/admin/collections/users/<id>. - Set the viewport to 375 px wide (browser dev tools device mode).
- Observe that
.doc-controls__contentextends past the viewport and "Created: ..." is cut off. - Run axe (the browser extension, or
@axe-core/playwright) on the page. The rulescrollable-region-focusableis 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: wrapon.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 suitableroleand 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
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from payloadcms/payload
-
db-d1-sqlite: upsert is aliased to updateOne, so payload.kv.set never inserts new keysPossibly taken @pcbeingused333 claimed this today. OpenBug db: d1-sqlite Payload OSS
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
payloadcms/payload#19766 ·
Maintainers usually reply within 1 day
-
[v4] Blocks thumbnails croped 3:2Possibly taken @samiarif02 claimed this 2 days ago. Openarea: ui Bug Payload OSS status: needs-triage v3
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
payloadcms/payload#19609 ·
Maintainers usually reply within 1 day
-
Scheduled publish jobs are not deleted when their document is deleted (string id in the job, raw id in the cleanup)Possibly taken @volodymyrshk claimed this 10 days ago. Openarea: core Bug db: sqlite
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
payloadcms/payload#19448 ·
Maintainers usually reply within 1 day
-
plugin-multi-tenant: `isGlobal` collections redirect tenant-scoped users to `/admin` since 3.93.0 (GlobalViewRedirect prop-name mismatch)Possibly taken @JarrodMFlesch claimed this 10 days ago. OpenBug plugin: multi-tenant
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
payloadcms/payload#19420 · 1 assignee ·
Maintainers usually reply within 1 day
-
[v4] Group field: the divider of a second group inside a collapsible is drawn through the group's labelPossibly taken @nishatayub claimed this 7 days ago. Openarea: ui Bug created-by: Contributor status: needs-triage v3
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
payloadcms/payload#19413 · 1 comment ·
Maintainers usually reply within 1 day
All issues in payloadcms/payload
Similar issues
-
`@angular/[email protected]` depends on vulnerable Vite 7.3.7 - GHSA-p4f5-76q4-ffq7 (Critical RCE)Openarea: @angular/build
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
angular/angular-cli#34764 ·
Maintainers usually reply within 1 day
-
status/need-triage
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
google-gemini/gemini-cli#30384 · 1 comment ·
Maintainers usually reply within 1 day
-
P2
Difficulty 1/5 Under an hour Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
bug ready-for-human
Difficulty 2/5 1-3 hours Newbie friendliness 60/100
LucasSantana-Dev/Lucky#3150 ·
Maintainers usually reply within 1 day
-
enhancement good first issue priority: low size: XS
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day