elastic/eui

[EuiDataGrid] Ensure gridStyles updates trigger a cell height recalculation

mgadewoll opened this issue · 0 comments

Description

While working on this bugfix on EuiDataGrid we noticed that the gridStyles prop does not trigger a recalculation of cell heights.
While it's generally not expected to impact production (styles shouldn't change on the fly), it does show up in storybook and might create confusion that the grid does not update based on props as expected.

We should enable the fontSize and cellpadding props on gridStyles to be applied when changed.

Screenshot 2024-06-04 at 19 23 52

Acceptance criteria

  • gridstyles.fontSize and gridStyles.cellPadding trigger recalculation of EuiDataGrid cell heights (testable in Storybook via controls)