Skip to content

Conversation

@Malvoz
Copy link
Member

@Malvoz Malvoz commented Jul 19, 2021

Fix #473.

This change makes these particular controls operable using both Enter and Space, and screen readers appropriately announce them as button as opposed to link.

Note: It seems that Firefox is using different outline colors for buttons and links (whereas e.g. Chrome uses the same color for both elements), as such, keyboard users may find it strange that different controls have different outline colors (because Leaflet is using <a> elements for controls, to be fixed separately: #19).

@prushforth
Copy link
Member

Nice work, thank you!

@prushforth prushforth merged commit 7c743d7 into Maps4HTML:master Jul 20, 2021
@Malvoz Malvoz deleted the links-to-buttons branch July 20, 2021 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Change <a role="button"> controls to <button type="button">

2 participants