Skip to content

[EuiTable/EuiBasicTable/EuiInMemoryTable] Add sticky table headers #9619

Closed

Description

@tkajtoch

Summary

As part of the Table sweep initiative, we want to add the ability to enable sticky table headers in tables built with EuiTable, EuiBasicTable, and EuiInMemoryTable components.

The technical solution should be based on the outcomes of this spike: https://github.com/elastic/eui-private/issues/647

Acceptance criteria

  • EuiTable, EuiBasicTable and EuiInMemoryTable should all have a way to enable sticky table headers.
  • Sticky headers should be turned off by default (headers should not stick)
  • The header stickiness should be compatible with actions column's sticky: true prop
  • The added props should be documented

Activity

  1. self-assigned this
    on Apr 27, 2026
  2. added theissue type on Apr 27, 2026
  3. tkajtoch commented on May 7, 2026

    @tkajtoch
    ContributorAuthor

    The chosen solution is (was) to restrict the table height and enable vertical scroll on overflow, which is supported by all modern browsers, and the implementation would be quick and easy to maintain.

    The problem I've found is that having a vertically-scrollable container for the table content has major drawbacks in some layouts. It works fine in pages where the table takes full screen (e.g., Cases) or when it's a small part of a larger page (e.g., APM Overview, where there are multiple tables inside panels). In Agent Builder, having the table container vertically scrollable has some major drawbacks:

    • When scrolling through the conversation, an inconveniently placed cursor may cause the vertical scroll to jump from the conversation container to the table container. This is frustrating, but that's how things work natively, and we can't do anything about it
    • It's easy to not notice that a table has more records than are currently visible. This would be fixable by a UI change
    • After testing it more, I now consider having more than one vertical scrollbar a bad UX

    With that, I'm pausing my work on this issue and am switching to the research spike to test various ways of adding an always-visible horizontal scrollbar to table components, which should help me understand all aspects of table scrolling, and answer one of the main questions of that spike: whether limiting the height of the table to make the horizontal scrollbar easier to reach could work in some cases, or we need to find a different solution. I think that we need a single solution that would (in)directly fix both problems

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions