Closed mihalichzh closed 1 year ago
It is an intended behavior.
THe "Close" interactive element is made specially for mouse users only. With mouse it's almost impossible to open the charts a11y module, so, if such user accidentally opens it, they see mouse intractable element to close it.
For keyboard users interaction with the module is different. It is displayed when user focus is placed on (or in) a chart and disappears when focus goes out. Also, initially focused, interactive element "Skip to content after plot" for keyboard users is doing exactly that – moves focus out of the module and closes it.
Describe the bug When interacting with data summary pop-up for charts, user is not able to place focus on 'Close' link
To Reproduce
Expected behavior 'Close' link can be focused (and it is expected to be first focusable element inside the pop-up)
Actual behavior 'Close' link is not available for focusing using keyboard (hence it cannot be pushed by the user). So currently user has to focus through the pop-up completely to close it (see att. screen cast).
https://github.com/semrush/intergalactic/assets/39348763/9571b81d-4152-402c-888e-a60ead2dd29f