You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
DataViews: Show that a table has more columns to scroll #85898
When a DataViews table is wider than its container, nothing tells you there are more columns off screen. The trailing edge is a hard cut, so the table looks complete when it isn't. This happens with wide tables on desktop (many metric columns, see #83079) and with a few columns on a phone.
The only cue today is the divider on the sticky actions column, which appears after you've scrolled. Tables without actions have no cue at all. Here's an example: a posts table with Title, Author, Status, Categories, Tags and Comments, where everything after Author is off screen and nothing shows it exists.
A ScrollArea component came up in #73468. As noted there, components like that in other libraries mostly handle edge fades, which is what this issue asks for. Whether it ends up as a dedicated component or as a style in the table layout is open; this issue is only about the cue.
What is your proposed solution?
A fade on the trailing edge of the table while there's more to scroll, which disappears at the end of the scroll range. Here's a mockup on the same table, scrolled a little:
The table layout already tracks the horizontal scroll state for the actions column (useScrollState), so the same state could drive the fade.
Yep, same concept, and I'd love @mattmiklic's input here, but it looks like efforts are converging.
Yeah, it does look pretty similar, and I'm happy to converge on the exact size/style of the fade so they're consistent between list tables and DataViews. One thing I'd note is that my PR also adds fading on the leading edge when content is scrolled offscreen to the left; its worth asking whether that's necessary or whether we'd want to do the same in DataViews.
Activity
oandregal commentedon Nov 13, 2026
@WordPress/gutenberg-design what are your thoughts on this? I'd like to understand how do we want to fix it before jumping into implementation.
For reference, there's this PR to update wp-admin tables.
jasmussen commentedon Nov 13, 2026
Yep, same concept, and I'd love @mattmiklic's input here, but it looks like efforts are converging.
oandregal commentedon Nov 13, 2026
Prepared #86829 to address this (alternate approach to and simpler than #85949)
mattmiklic commentedon Nov 13, 2026
Yeah, it does look pretty similar, and I'm happy to converge on the exact size/style of the fade so they're consistent between list tables and DataViews. One thing I'd note is that my PR also adds fading on the leading edge when content is scrolled offscreen to the left; its worth asking whether that's necessary or whether we'd want to do the same in DataViews.
oandregal commentedon Nov 16, 2026
Implemented leading fading as well but used 24 instead of 32, see rationale #86829 (comment)