From 7b47021d19383eb1f0f9918aad18fc1d6269702a Mon Sep 17 00:00:00 2001 From: Joao Silva <100691367+JoaoSilvaGrafana@users.noreply.github.com> Date: Fri, 2 Dec 2022 12:10:21 +0100 Subject: [PATCH] A11y: Remove unnecessary onClick from `LegendSeriesItem` (#59671) --- .../app/plugins/panel/graph/Legend/LegendSeriesItem.tsx | 8 ++------ public/sass/components/_panel_graph.scss | 1 - 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/public/app/plugins/panel/graph/Legend/LegendSeriesItem.tsx b/public/app/plugins/panel/graph/Legend/LegendSeriesItem.tsx index 073c9f5872e..188168ecf58 100644 --- a/public/app/plugins/panel/graph/Legend/LegendSeriesItem.tsx +++ b/public/app/plugins/panel/graph/Legend/LegendSeriesItem.tsx @@ -221,14 +221,10 @@ interface LegendValueProps { function LegendValue({ value, valueName, asTable, onValueClick }: LegendValueProps) { if (asTable) { return ( - + {value} ); } - return ( -
- {value} -
- ); + return
{value}
; } diff --git a/public/sass/components/_panel_graph.scss b/public/sass/components/_panel_graph.scss index 521efac9ed4..7a12b12e09a 100644 --- a/public/sass/components/_panel_graph.scss +++ b/public/sass/components/_panel_graph.scss @@ -79,7 +79,6 @@ .graph-legend-alias, .graph-legend-value { display: inline; - cursor: pointer; white-space: nowrap; font-size: 12px; text-align: left;