Leaflet.EasyButton icon indicating copy to clipboard operation
Leaflet.EasyButton copied to clipboard

[accessibility] Activating a button using a keyboard should not set focus to the map element

Open Malvoz opened this issue 4 years ago • 1 comments

When a button is activated using keyboard, the focus is set to the map element:

https://github.com/CliffCloud/Leaflet.EasyButton/blob/cd53db586a10d5a9c4efed003327cad29f4760bf/src/easy-button.js#L193

This is not the standard behavior of activating buttons, and is problematic because a keyboard-only user will have to tab through all the content to get back to the previously focused element if they wish to continue to explore the user interface.

Malvoz avatar Jan 16 '21 14:01 Malvoz