A11y: Remove unnecessary onClick from LegendSeriesItem (#59671)

This commit is contained in:
Joao Silva 2022-12-02 12:10:21 +01:00 committed by GitHub
parent 069c99fba3
commit 7b47021d19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 7 deletions

View File

@ -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>;
}

View File

@ -79,7 +79,6 @@
.graph-legend-alias,
.graph-legend-value {
display: inline;
cursor: pointer;
white-space: nowrap;
font-size: 12px;
text-align: left;