[Legend] Legend dot Icon fixed id string breaks a11y tests #983
Labels
:accessibility
Accessibility related issue
bug
Something isn't working
kibana cross issue
Has a Kibana issue counterpart
:Lens
Kibana Lens related issue
Describe the bug
The Legend component is using the
DotIcon
underneath, which exposes a SVG component with a fixed id string: this leads to multiple DOM nodes with the sameid
value, which is a problem both in general and at a11y level.Either remove the
id
(but it is probably used somewhere else) or assign a configurable/dynamic id to it.To Reproduce
Steps to reproduce the behavior:
document.querySelectorAll('#dot-a').length
Expected behaviour
Unique id used in the visualization DOM tree.
Kibana Cross Issues
Kibana Lens issue
Checklist
Kibana Cross Issues
listkibana cross issue
tag is associated to the issue if any kibana cross issue is presentThe text was updated successfully, but these errors were encountered: