Open seedy opened 2 years ago
SVG nodes generated by Geography component all have an attribute tabindex="0".
Geography
tabindex="0"
Screenshot taken from generated svg from this example:
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:
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.
tabindex="-1"
Description
SVG nodes generated by
Geography
component all have an attributetabindex="0"
.Screenshot taken from generated svg from this example:
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 addingtabindex="-1"
, which should be the expected default.