You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the keyboard focus should change to the pop-up's contents of the marker
whether through a designated keydown event (pressing enter on the keyboard while focus is on the marker) or the click event.
In other words, a user who is only able to use a keyboard will tab through
each tabbable element, reach a marker that they would like to access, press enter to open, and expects that during their next tab, the focus would be on the first
tabbable element (the link, a heading, or a close button for the pop-up)
in that pop-up.
Actual Behavior
After a user opens the pop-up, and presses tab, the focus changes to the next
item in the source.
In the test case that loads a geojson array of 27 elements, if a user tabs after opening, the focus changes to the next point in the source data. As a result, if the user opens up a pop-up for a point that was 4th in the source data, they'll have to tab through the remaining 23 entries, plus any other elements on the page.
This is a bug because users who are only able to use a keyboard to navigate have to go through significant more work in order to access the content of a pop-up (which may contain a link).
The text was updated successfully, but these errors were encountered:
Thanks for the thorough report @skorasaurus! We welcome contributions, if you're interested in supplying a pull request to fix this issue. Our contributor guidelines can get you started.
mapbox-gl-js version:
confirmed on 1.10.0
browser:
confirmed with firefox 75 on ubuntu and chrome on windows
Steps to Trigger Behavior
Link to Demonstration
Demonstration source
https://gist.github.com/skorasaurus/40d6f977d2db8038b99ed6aca5354f73
Viewable demonstration
http://bl.ocks.org/skorasaurus/40d6f977d2db8038b99ed6aca5354f73
Expected Behavior
the keyboard focus should change to the pop-up's contents of the marker
whether through a designated keydown event (pressing enter on the keyboard while focus is on the marker) or the click event.
In other words, a user who is only able to use a keyboard will tab through
each tabbable element, reach a marker that they would like to access, press enter to open, and expects that during their next tab, the focus would be on the first
tabbable element (the link, a heading, or a close button for the pop-up)
in that pop-up.
Actual Behavior
After a user opens the pop-up, and presses tab, the focus changes to the next
item in the source.
In the test case that loads a geojson array of 27 elements, if a user tabs after opening, the focus changes to the next point in the source data. As a result, if the user opens up a pop-up for a point that was 4th in the source data, they'll have to tab through the remaining 23 entries, plus any other elements on the page.
This is a bug because users who are only able to use a keyboard to navigate have to go through significant more work in order to access the content of a pop-up (which may contain a link).
The text was updated successfully, but these errors were encountered: