react-simple-maps icon indicating copy to clipboard operation
react-simple-maps copied to clipboard

SVG generated by `Geography` should not generate elements with `tabindex="0"`

Open seedy opened this issue 3 years ago • 0 comments

Description

SVG nodes generated by Geography component all have an attribute tabindex="0".

Screenshot taken from generated svg from this example: image

This behaviour adds any generated svg node to the tab navigation, which is not recommended for obvious accessibility reasons.

Users without a mouse might be trapped in there for a while :sweat_smile:

Workaround

This line is culprit

My workaround, as we can pass down extra props to the Geography component, is to override this behavior by adding tabindex="-1", which should be the expected default.

seedy avatar Mar 29 '22 14:03 seedy