v94.0.0
- Updated
EuiTable,EuiBasicTable, andEuiInMemoryTablewith a newresponsiveBreakpointprop, which allows customizing the point at which the table collapses into a mobile-friendly view with cards (#7625) - Updated
EuiProvider'scomponentDefaultsprop to allow configuringEuiTable.responsiveBreakpoint(#7625)
Bug fixes
EuiBasicTable&EuiInMemoryTableisPrimaryactions are now correctly shown on mobile views (#7640)- Table
mobileOptions: (#7642)mobileOptions.alignis now respected instead of all cells being forced to left alignmenttextTruncateandtextOnlyare now respected even if arenderfunction is not passed
Breaking changes
- Removed unused
EuiTableHeaderButtoncomponent (#7621) - Removed the
responsiveprop fromEuiTable,EuiBasicTable, andEuiInMemoryTable. Use the newresponsiveBreakpointprop instead (#7625) - The following props are no longer needed by
EuiBasicTableorEuiInMemoryTablefor responsive table behavior to work correctly, and can be removed: (#7632)isSelectableisExpandablehasActions
- Removed the
showOnHoverprop fromEuiTableRowCell/EuiBasicTable/EuiInMemoryTable'scolumnsAPI. Use the new actionscolumns[].actions[].showOnHoverAPI instead. (#7640) - Removed top-level
textOnlyprop fromEuiBasicTableandEuiInMemoryTable. Usecolumns[].textOnlyinstead. (#7642)
DOM changes
EuiTablemobile headers no longer render in the DOM when not visible (previously rendered withdisplay: none). This may affect DOM testing assertions. (#7625)EuiTableRowCellnow applies passedclassNames to the parent<td>element, instead of to the inner cell content<div>. (#7631)EuiTableRows rendered by basic and memory tables now only render a.euiTableRow-isSelectableclassName if the selection checkbox is not disabled (#7632)EuiTableRowCells withtextOnlyset tofalsewill no longer attempt to apply the.euiTableCellContent__textclassName to child elements. (#7641)EuiTableRowCellno longer renders mobile headers to the DOM unless the current table is displaying its responsive view. (#7642)EuiTableHeaderCellandEuiTableRowCellwill no longer render in the DOM at all on mobile if their columns'mobileOptions.showis set tofalse. (#7642)EuiTableHeaderCellandEuiTableRowCellwill no longer render in the DOM at all on desktop if their columns'mobileOptions.onlyis set totrue. (#7642)
CSS-in-JS conversions
- Converted
EuiTable,EuiTableRow,EuiTableRowCell, and all other table subcomponents to Emotion (#7654) - Removed the following
EuiTableSass variables: (#7654)$euiTableCellContentPadding$euiTableCellContentPaddingCompressed$euiTableCellCheckboxWidth$euiTableHoverColor$euiTableSelectedColor$euiTableHoverSelectedColor$euiTableActionsBorderColor$euiTableHoverClickableColor$euiTableFocusClickableColor
- Removed the following
EuiTableSass mixins: (#7654)euiTableActionsBackgroundMobileeuiTableCellCheckboxeuiTableCell