-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding tabbing navigation and accessibility to map #270
Merged
Merged
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
831e5fb
Allow features to be focused
ahmadayubi ba5078b
Adds crosshair, shows on keyboard movement
ahmadayubi 1c75af6
Shows crosshair on tab
ahmadayubi 8d82998
Only run on moveend if there are queryable layers
ahmadayubi 9d9029e
Revert listener change
ahmadayubi 97b811d
Adds tests for keyboard interaction
ahmadayubi 5812169
Merge branch 'master' into featureFocus
prushforth f7f1497
Merge branch 'master' into featureFocus
ahmadayubi 64476e6
Merge branch 'master' into featureFocus
ahmadayubi f5911b0
Remove close button from feature popup
ahmadayubi 61a83d4
Add bypass navigation
ahmadayubi edc2cf0
Query popup fix
ahmadayubi a8d82fd
Merge branch 'master' into featureFocus
prushforth 525d68e
Merge branch 'master' into featureFocus
prushforth 2ed2749
Merge branch 'master' into featureFocus
prushforth 3147842
Add feature count, move controls to bottom
ahmadayubi 783d521
Merge branch 'featureFocus' of https://github.com/ahmadayubi/Web-Map-…
ahmadayubi 8bc75ce
Test update to consider skip buttons
ahmadayubi 69478aa
Test update
ahmadayubi 7326fa1
Adds next and previous focus buttons
ahmadayubi 19aaf5e
Add tests for keyboard interaction
ahmadayubi d227589
Rename variables and add comments
ahmadayubi 8b3b1ef
Remove handlers on close
ahmadayubi 0f69555
Merge branch 'master' into featureFocus
ahmadayubi a6c7f8d
Merge branch 'master' into featureFocus
prushforth File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are close buttons not useful in feature's popups?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think @shepazu mentioned they might be problematic, or it might have been me misinterpreting something...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was suggested that it be removed, should it be added back?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think having a close button is fine, with the following caveats:
This seems like somewhat competing experiences between voice-control and screen-reader users, in exposing the right amount of detail with the fewest possible number of forced interactions. My preference would be to have the popup not exposed to screen readers on focus, but only read the accessible name (the popup "title"), with notification of additional information (e.g.
aria-expanded
) to access the other popup details only on demand (at which point they might encounter the close button, but that's fine, because they chose to expand it). For voice-control users, I think having the popup on focus should be good, with scrolling for long details, and a close button.Does this seem right to you, @Malvoz?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The popups are non-modal, so focus traps are (mostly*) not an issue.
*when the popup for the last feature in the sequence is opened tabbing is currently trapped to some extent (shift + tab can be used to move back to the previous feature):
Keyboard.Interaction.Test.-.Google.Chrome.2021-02-08.11-06-.mp4
Because focus (generally) isn't trapped inside popups users don't have to explicitly close popups before moving on to other features/focusable elements.
I'm not super familiar with voice-control so I'm not sure about how there are competing experiences here. I do know that some people use voice-control to move their cursor around to interact with elements, in that case I think a close button could be appreciated if they just wanted to close a popup without opening a new one.
Yes I think we agreed that popups should not be opened (and thus exposed to ATs) when a feature recieves focus, and that each feature itself should be labelled for discernibility. (discussion from #270 (comment))
I agree that features that are interactive and have popups should expose the state of the popup using
aria-expanded
.