Skip to content

[EuiDataGrid] Create headerless option #9000

Closed
1 of 1 issue completed
Closed

Description

@iblancof

Problem Statement

As part of improving the flyout UI experience in Discover, we wanted to showcase some relevant fields to users while keeping the actions on hover, following the same pattern we already use in other areas of Discover.

Image

To achieve this, we need to use the EuiDataGrid, but since it includes a header row, we’d like to hide the headers for a cleaner UI experience. This avoids redundancy, especially in cases where the same component might appear multiple times in the same context.

Proposed Solution

Add a new prop to EuiDataGrid to have a headless option.

With header Without header
Image Image

Use Case

This will be used in the Observability Discover flyouts as a pattern to highlight specific fields.

Image

Value / Impact

After speaking with the EUI team, it seems this request has come up in other situations as well, so more than one place could benefit from it.

Urgency

We’re going to use this first for the trace and logs document flyouts in Discover, but the idea is to extend it to other flyouts in the future.

It's not a dependency right now, we agreed on shipping it with headers first and remove them once EuiDataGrid properly supports it.

Do alternatives or workarounds exist?

We suggested a custom css workaround but we were not encouraged to use it.
Looked something like:

      '.euiDataGridHeader': { height: `calc(${euiTheme.size.base} * 1.5)` },
      '.euiDataGridHeaderCell': { display: 'none' },

Related code or customizations

We agreed to keep the header visible until we can properly remove it by using EuiDataGrid capabilities.

Sub-issues

Sub-issues

1 of 1 Issues completed
Loading 1 sub-issues

Activity

  1. changed the title [-][EuiDataGrid] Create headless option[/-] [+][EuiDataGrid] Create headerless option[/+] on Sep 8, 2025
  2. JasonStoltz commented on Sep 18, 2025

    @JasonStoltz
    Contributor

    @iblancof Thank you for submitting this request!

    We discussed this in a Triage session. We decided to mark this as a "Next Quarter Candidate" to consider prioritizing for next Quarter.

    Here's a recap from that conversation:

    ##Recap from Triage Session##

    The Use Case & Discussion

    The team discussed that using a EuiDataGrid for a simple key-value display seems like "overkill.". However, the requesting team specifically wants to use the EuiDataGrid because it supports row actions (like an overlay with a "copy value" button), a feature not available in EuiBasicTable.

    Accessibility
    From an accessibility perspective, the team concluded that hiding the header is likely acceptable, as long as text for column headers is still included. Even if the header is visually hidden, the column information is still provided to screen readers via ARIA tags, so the key-value relationship remains clear.

    Proposed Solution & Effort
    The proposed technical solution is to add a new prop to EuiDataGrid that would conditionally hide the header. This approach would still require developers to define the header columns in the code, preserving the necessary information for accessibility.

    Tomasz noted that the implementation would require adjusting a few places in the code where header height is used in offset calculations. Due to the complexity of the data grid and the need for extensive testing, the effort was estimated to be between
    2 and 5 workdays.

    Triage Decision & Next Steps
    Because this is tied to a key feature in Kibana, this issue should be considered for prioritization. The issue was moved to the backlog and marked as a candidate for next quarter's planning session.

    Historical context and alternative solutions
    A related issue was also brought up by @Bluefinger in the #eui slack channel on April 14th.

    The use case they're using for seems more ideally suited for an EuiBasicTable. The limiting factor there is that EuiBasicTable does not support cell actions.

    @tkajtoch suggested in the thread that we could possibly factor EuiDataGridCellActions out of the EuiDataGrid so that it can be used with EuiBasicTable (or even other components). If we could make this work, that would allow them to use a simple table, and hiding headers on a simple table would be much simpler because we do not need to handle virtiualization. This is a common use case in Kibana and a number of examples are mentioned in that thread.

    That work is captured here: #8615

    In that thread, I put together a CodeSandbox which hides headers on an EuiDataGrid: https://codesandbox.io/p/sandbox/sleepy-pond-pkjzjh?file=%2Fdemo.tsx%3A16%2C17

  3. iblancof commented on Sep 18, 2025

    @iblancof
    Author

    Hey @JasonStoltz, thank you so much for adding this request to the triage!

    I’m really glad to see it will be considered for the next quarter, and I’ll make sure to keep an eye on the updates.
    And please let me know if there’s anything I can do on my side to help, thanks!

  4. added
    request
    on Sep 22, 2025
  5. JasonStoltz commented on Nov 19, 2025

    @JasonStoltz
    Contributor

    Hey quick update! We haven't been able to prioritize this yet, but I queued up a task for someone to do a quick spike / POC for this to help move it along. Hopefully someone will be able to pick that up in the short term.

  6. JasonStoltz commented on Dec 22, 2025

    @JasonStoltz
    Contributor

    @iblancof We have a PR up for this if you're interested in taking a look: #9281

    Assuming this gets merged, this would be available for use in Kibana sometime in early to mid January.

  7. iblancof commented on Jan 7, 2026

    @iblancof
    Author

    @iblancof We have a PR up for this if you're interested in taking a look: #9281

    Assuming this gets merged, this would be available for use in Kibana sometime in early to mid January.

    Great news @JasonStoltz, thanks for sharing.
    I'll consider taking a look at the PR and try integrating it based on our needs to see if it works as we expect.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    data gridrequest

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions