From da78f3393951054b09fdbe56cffdba34b03a6f83 Mon Sep 17 00:00:00 2001 From: Victor Marin <36818606+mdvictor@users.noreply.github.com> Date: Thu, 22 Sep 2022 09:33:15 +0300 Subject: [PATCH] TablePanel: Fix FooterRow styling for Safari and Firefox (#55543) * Fix FooterRow styling for Safari and Firefox * Change column header th to div --- .../src/components/Table/FooterRow.tsx | 20 +++++++++---------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/packages/grafana-ui/src/components/Table/FooterRow.tsx b/packages/grafana-ui/src/components/Table/FooterRow.tsx index f92a393a811..59a4659f3d8 100644 --- a/packages/grafana-ui/src/components/Table/FooterRow.tsx +++ b/packages/grafana-ui/src/components/Table/FooterRow.tsx @@ -23,7 +23,7 @@ export const FooterRow = (props: FooterRowProps) => { const tableStyles = useStyles2(getTableStyles); return ( - { {footerGroups.map((footerGroup: HeaderGroup) => { const { key, ...footerGroupProps } = footerGroup.getFooterGroupProps(); return ( - - - {footerGroup.headers.map((column: ColumnInstance, index: number) => - renderFooterCell(column, tableStyles, height) - )} - - + {footerGroup.headers.map((column: ColumnInstance, index: number) => + renderFooterCell(column, tableStyles, height) + )} + ); })} -
+ ); }; @@ -67,9 +65,9 @@ function renderFooterCell(column: ColumnInstance, tableStyles: TableStyles, heig } return ( - +
{column.render('Footer')} - +
); }