mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
A11y: enable rule jsx-a11y/anchor-is-valid (#56690)
This commit is contained in:
@@ -150,7 +150,8 @@ class LegendSeriesLabel extends PureComponent<LegendSeriesLabelProps & LegendSer
|
||||
onColorChange={onColorChange}
|
||||
onToggleAxis={onToggleAxis}
|
||||
/>,
|
||||
<a
|
||||
<button
|
||||
type="button"
|
||||
className="graph-legend-alias pointer"
|
||||
title={label}
|
||||
key="label"
|
||||
@@ -158,7 +159,7 @@ class LegendSeriesLabel extends PureComponent<LegendSeriesLabelProps & LegendSer
|
||||
aria-label={selectors.components.Panels.Visualization.Graph.Legend.legendItemAlias(label)}
|
||||
>
|
||||
{label}
|
||||
</a>,
|
||||
</button>,
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user