From d179c2a4e9896a574b9f5f5eb8cf9a98bbb4a7c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Tue, 19 Oct 2021 08:53:56 +0200 Subject: [PATCH] Table: Tweak to type icon styles (#40596) --- packages/grafana-ui/src/components/Table/HeaderRow.tsx | 2 +- packages/grafana-ui/src/components/Table/styles.ts | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/grafana-ui/src/components/Table/HeaderRow.tsx b/packages/grafana-ui/src/components/Table/HeaderRow.tsx index 1b513d5baf9..434852eec4c 100644 --- a/packages/grafana-ui/src/components/Table/HeaderRow.tsx +++ b/packages/grafana-ui/src/components/Table/HeaderRow.tsx @@ -61,7 +61,7 @@ function renderHeaderCell(column: any, tableStyles: TableStyles, field?: Field, title={column.render('Header')} > {showTypeIcons && ( - + )}
{column.render('Header')}
diff --git a/packages/grafana-ui/src/components/Table/styles.ts b/packages/grafana-ui/src/components/Table/styles.ts index e11fa50dd83..9182ec63bd1 100644 --- a/packages/grafana-ui/src/components/Table/styles.ts +++ b/packages/grafana-ui/src/components/Table/styles.ts @@ -170,6 +170,10 @@ export const getTableStyles = (theme: GrafanaTheme2) => { cursor: pointer; padding: 0 ${theme.spacing(0.025)}; `, + typeIcon: css` + margin-right: ${theme.spacing(1)}; + color: ${theme.colors.text.secondary}; + `, noData: css` align-items: center; display: flex;