A11y: enable rule jsx-a11y/anchor-is-valid (#56690)

This commit is contained in:
Laura Fernández
2022-10-21 09:13:32 +02:00
committed by GitHub
parent 7eac79b5f8
commit e402a8f27d
23 changed files with 169 additions and 73 deletions

View File

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