Remove aria-hidden from parents of #fms_pan_zoom #3751
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Since the
#fms_pan_zoom
map controls are keyboard-navigable (and could conceivably be used by even non-sighted users, wanting to move the map view to reveal new markers in the#map_sidebar
list) we need to make sure the controls aren’t hidden inside anaria-hidden
parent.Removing
aria-hidden
from#map_box
, however, now exposes a whole load of new elements to assistive devices, including (in order):In this commit, I’ve at least hidden the image tiles and pins in the non-JavaScript version(s) of the map. But doing the same thing in the OpenLayers JavaScript is beyond my current understanding!
Perhaps a developer can take a look?
TODO:
aria-hidden="true"
aria-hidden="true"
as well (given there’s no way to skip over/past them, and there’s a list of all reports in#map_sidebar
anyway).