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
[EuiDataGrid] Make EuiDataGridCellActions reusable outside EuiDataGrid #8615
Is your feature request related to a problem? Please describe. EuiDataGridCellActions are only available as part of EuiDataGrid. It would be useful to use this for other use cases, specifically integrating it in EuiTable like in this design:
Describe the solution you'd like
Split EuiDataGridCellActions out of EuiDataGrid.
Describe alternatives you've considered
I should be possible to use it that way outside EuiDataGrid. It's not exported, though, and by that it's not part of the supported EUI API.
It would also only be the cell actions bar, not the whole cell wrapper and selection thing, so there would be plenty to handle on your end in terms of accessibility
Desired timeline
I believe that @patpscal and team will go with another solution for now, so we can consider this was low priority at the moment.
Additional context
This would be a great opportunity to explore splitting up the EuiDataGrid logic from the UI elements. Consider this issue an experimentation ground. The exported component should be marked as experimental.
changed the title [-][EuiDataGrid] Make EuiDataGridCellActions reusable outside EuiDataGrid[/-][+][EuiDataGrid] Make `EuiDataGridCellActions` reusable outside `EuiDataGrid`[/+]on Apr 23, 2025
👋 Thank you for your suggestion or request! While the EUI team agrees that it's valid, it's unlikely that we will prioritize this issue on our roadmap. We'll leave the issue open if you or anyone else in the community wants to implement it by contributing to EUI. If not, this issue will auto close in one year.
A potential con is that this blurs the line between table and data grid in a way that could confuse when to use one versus the other. My gut says to keep the table very basic and close to the HTML interpretation 🤔
I'm still a bit skeptical that the case presented could not simply use EuiDataGrid. If the sticking point has to do with whether to visibly show a header row, an alternative might be to make the header row optional for data grid.
The only drawback to using EuiDataGrid with a hidden header I see here is the setup complexity. It needs columns and items to be defined which isn't the best DX, but it's not a dealbreaker. It could be abstracted away very easily.
Haven't read through this but FYI the filtering in logs/traces has 0 keyboard accessibility.
Something else for us to consider is how much of the accessibility complexity we would be pushing onto those adding actions to basic table. This comment was from @smith but you had similar feedback @tkajtoch ... data grid certainly has a big 'pro' in this regard.
Something else for us to consider is how much of the accessibility complexity we would be pushing onto those adding actions to basic table. This comment was from @smith but you had similar feedback @tkajtoch ... data grid certainly has a big 'pro' in this regard.
Good point. AFAICT table cells are not keyboard navigable. I assume the same rules apply to that as we state in our Popover guidance:
Popovers have three accessibility requirements: Popover triggers must be anchored to elements that accept keyboard focus.
Popovers can contain interactive elements. They must be controlled by a click handler.
Popovers must not be activated by hover or focus events.
I suppose we could simply add a tabindex=0 if a cell in a table has cell actions or something like that, to make it "focusable" 🤔.
At it's core, it feels hard to recommend data grid for a case like this.
Thematically, EuiDatagrid is purpose built to handle scenarios where you have loads of data. It's a really heavy solution for a small table with 8 cells in it.
EuiBasicTable is a much better fit for the case above -- it's a semantic html table. The cell actions menu seems transportable enough to a basic table, it may be quite useful.
This came up today in relation to Traces work in the Discover flyout.
In this case, the consumer wanted a table with cell actions and, therefore, chose data grid. However, this was a rather simple two column table (practically, a list). Relatedly, there were some other needs (vertical header rows) that would have been more simply achieved - semantically - as a basic table.
The use case in this feature request is also likely driven by the need for cell actions. Hiding the headers on a basic table would be a lot simpler (if it's not already possible), alleviating the need for that feature.
👋 Hi there - this issue hasn't had any activity in 6 months. If the EUI team has not explicitly expressed that this is something on our roadmap, it's unlikely that we'll pick this issue up. We would sincerely appreciate a PR/community contribution if this is something that matters to you! If not, and there is no further activity on this issue for another 6 months (i.e. it's stale for over a year), the issue will be auto-closed.
Activity
[-][EuiDataGrid] Make EuiDataGridCellActions reusable outside EuiDataGrid[/-][+][EuiDataGrid] Make `EuiDataGridCellActions` reusable outside `EuiDataGrid`[/+]github-actions commentedon Apr 24, 2025
👋 Thank you for your suggestion or request! While the EUI team agrees that it's valid, it's unlikely that we will prioritize this issue on our roadmap. We'll leave the issue open if you or anyone else in the community wants to implement it by contributing to EUI. If not, this issue will auto close in one year.
ryankeairns commentedon Apr 24, 2025
A potential con is that this blurs the line between table and data grid in a way that could confuse when to use one versus the other. My gut says to keep the table very basic and close to the HTML interpretation 🤔
I'm still a bit skeptical that the case presented could not simply use
EuiDataGrid. If the sticking point has to do with whether to visibly show a header row, an alternative might be to make the header row optional for data grid.tkajtoch commentedon Apr 24, 2025
The only drawback to using
EuiDataGridwith a hidden header I see here is the setup complexity. It needscolumnsanditemsto be defined which isn't the best DX, but it's not a dealbreaker. It could be abstracted away very easily.ryankeairns commentedon Apr 24, 2025
Something else for us to consider is how much of the accessibility complexity we would be pushing onto those adding actions to basic table. This comment was from @smith but you had similar feedback @tkajtoch ... data grid certainly has a big 'pro' in this regard.
JasonStoltz commentedon Apr 29, 2025
Here is a POC of a simple data grid that looks like the above: https://codesandbox.io/p/sandbox/sleepy-pond-pkjzjh?file=%2Fdemo.tsx
It hides the header using:
JasonStoltz commentedon Apr 29, 2025
Good point. AFAICT table cells are not keyboard navigable. I assume the same rules apply to that as we state in our Popover guidance:
I suppose we could simply add a
tabindex=0if a cell in a table has cell actions or something like that, to make it "focusable" 🤔.JasonStoltz commentedon Apr 29, 2025
At it's core, it feels hard to recommend data grid for a case like this.
Thematically, EuiDatagrid is purpose built to handle scenarios where you have loads of data. It's a really heavy solution for a small table with 8 cells in it.
EuiBasicTable is a much better fit for the case above -- it's a semantic html table. The cell actions menu seems transportable enough to a basic table, it may be quite useful.
ryankeairns commentedon Sep 8, 2025
This came up today in relation to Traces work in the Discover flyout.
In this case, the consumer wanted a table with cell actions and, therefore, chose data grid. However, this was a rather simple two column table (practically, a list). Relatedly, there were some other needs (vertical header rows) that would have been more simply achieved - semantically - as a basic table.
JasonStoltz commentedon Sep 18, 2025
The use case in this feature request is also likely driven by the need for cell actions. Hiding the headers on a basic table would be a lot simpler (if it's not already possible), alleviating the need for that feature.
github-actions commentedon Aug 26, 2026
👋 Hi there - this issue hasn't had any activity in 6 months. If the EUI team has not explicitly expressed that this is something on our roadmap, it's unlikely that we'll pick this issue up. We would sincerely appreciate a PR/community contribution if this is something that matters to you! If not, and there is no further activity on this issue for another 6 months (i.e. it's stale for over a year), the issue will be auto-closed.