GreenInfo-Network/Leaflet-Control-BasemapBar

Keyboard navigation / 508 stuff

Closed this issue · 0 comments

In more recent projects, I've made modifications to the Basemap Bar to make it more friendly for keyboard navigation and potential accessibility stuff. The results are pretty great, and have passed stringent 508 testing. Go through some of these and integrate them into this code for everybody.

  • on open, focus the close button; on close, focus the open button
  • trigger open/close with Enter keypress
  • trigger map selection with Enter keypress