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

Aperta Adatta ai principianti
#19,690 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@stussysenik ci sta già lavorando.

Dal 18/11/2026.

  • #19695 di @stussysenik — aperta

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
78/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
next.js, react, typescript

Direzione di ricerca

Trova gli stili della vista dei documenti di amministrazione per .doc-controls__content e i relativi elementi di riga, quindi riproduci il problema con un viewport di 375 px usando un documento che mostra il timestamp Created. Verifica se il contenuto può andare a capo senza essere tagliato ed esegui axe per confermare che la violazione di scrollable-region-focusable sia scomparsa. Il lavoro è completato quando il testo è raggiungibile e visibile a quella larghezza e la regola di accessibilità è rispettata.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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
Lingua principale
TypeScript
Stelle
45.8k
Fork
4.4k
Merge medio
2g 16h
PR unite (30g)
251

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di payloadcms/payload

Tutte le issue di payloadcms/payload

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.