mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
A11y: Remove unnecessary onClick from LegendSeriesItem
(#59671)
This commit is contained in:
parent
069c99fba3
commit
7b47021d19
@ -221,14 +221,10 @@ interface LegendValueProps {
|
||||
function LegendValue({ value, valueName, asTable, onValueClick }: LegendValueProps) {
|
||||
if (asTable) {
|
||||
return (
|
||||
<td role="gridcell" className={`graph-legend-value ${valueName}`} onClick={onValueClick}>
|
||||
<td role="gridcell" className={`graph-legend-value ${valueName}`}>
|
||||
{value}
|
||||
</td>
|
||||
);
|
||||
}
|
||||
return (
|
||||
<div className={`graph-legend-value ${valueName}`} onClick={onValueClick}>
|
||||
{value}
|
||||
</div>
|
||||
);
|
||||
return <div className={`graph-legend-value ${valueName}`}>{value}</div>;
|
||||
}
|
||||
|
@ -79,7 +79,6 @@
|
||||
.graph-legend-alias,
|
||||
.graph-legend-value {
|
||||
display: inline;
|
||||
cursor: pointer;
|
||||
white-space: nowrap;
|
||||
font-size: 12px;
|
||||
text-align: left;
|
||||
|
Loading…
Reference in New Issue
Block a user