Skip to content

DataViews: Show that a table has more columns to scroll #85898

Closed

Description

@yashwin

What problem does this address?

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.

Image

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:

Image

The table layout already tracks the horizontal scroll state for the actions column (useScrollState), so the same state could drive the fade.

Happy to help test.

Activity

  1. added
    [Type] Enhancement
    on Oct 29, 2026
  2. added
    [Status] In Progress
    on Oct 29, 2026
  3. added
    [Feature] DataViews
    Needs Design Feedback
    on Nov 13, 2026
  4. oandregal commented on Nov 13, 2026

    @oandregal
    Member

    @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.

  5. jasmussen commented on Nov 13, 2026

    @jasmussen
    Contributor

    Yep, same concept, and I'd love @mattmiklic's input here, but it looks like efforts are converging.

  6. oandregal commented on Nov 13, 2026

    @oandregal
    Member

    Prepared #86829 to address this (alternate approach to and simpler than #85949)

  7. mattmiklic commented on Nov 13, 2026

    @mattmiklic
    Contributor

    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.

  8. oandregal commented on Nov 16, 2026

    @oandregal
    Member

    Implemented leading fading as well but used 24 instead of 32, see rationale #86829 (comment)

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

Metadata

Metadata

Assignees

Labels

Needs Design Feedback[Feature] DataViews[Status] In Progress[Type] Enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions