From 0b842eb48ef75ebc33d386e16ea377b6a010199e Mon Sep 17 00:00:00 2001 From: Josh Hunt Date: Thu, 24 Oct 2024 15:27:25 +0100 Subject: [PATCH] Chore: Change filterTable nth-child to nth-of-type (#95331) Chore: Change filterTable nth-child styles to fix console warning --- packages/grafana-ui/src/themes/GlobalStyles/filterTable.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/grafana-ui/src/themes/GlobalStyles/filterTable.ts b/packages/grafana-ui/src/themes/GlobalStyles/filterTable.ts index fd83af52b1b..920b9bcb342 100644 --- a/packages/grafana-ui/src/themes/GlobalStyles/filterTable.ts +++ b/packages/grafana-ui/src/themes/GlobalStyles/filterTable.ts @@ -13,7 +13,7 @@ export function getFilterTableStyles(theme: GrafanaTheme2) { borderCollapse: 'separate', tbody: { - 'tr:nth-child(odd)': { + 'tr:nth-of-type(odd)': { background: theme.colors.emphasize(theme.colors.background.primary, 0.02), }, },