Skip to content

[Question]: Should sticky header with DataTable have horizontal scroll? #21731

@Eric-Arellano

Description

@Eric-Arellano

Question for Carbon

As you can see at https://react.carbondesignsystem.com/?path=/story/components-datatable-basic--default&globals=viewport.value:sm, using a sticky header with DataTables turns off horizontal scrolling. This results in the content overflowing poorly on small viewports or with wide tables, such as:

Image

Compare to when you disable the sticky header, which uses a horizontal scroll to better show the table contents.

Image

Is sticky header behaving as intended? Or would it be possible to have it use the behavior of no sticky header? (I know this is tricky code. Either way, thanks for Carbon!)

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Status

    ⏱ Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions