Repository navigation
fix next/prev navigation in the accessible view - #221523
Merged
Merged
Conversation
Megan Rogge (meganrogge)
marked this pull request as ready for review
July 12, 2024 17:00
Megan Rogge (meganrogge)
enabled auto-merge (squash)
July 12, 2024 17:05
Megan Rogge (meganrogge)
disabled auto-merge
July 12, 2024 17:16
Megan Rogge (meganrogge)
enabled auto-merge (squash)
July 12, 2024 17:19
Matt Bierner (mjbvz)
approved these changes
Jul 12, 2024
This file contains hidden or 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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
fixes #221497
fixes #221521
When I got rid of calling
showdirectly on theAccessibleViewServicefrom within implementations of accessible views with the adoption of theAccessibleViewRegistry, #212138, it brokenext/previous navigationin the accessible view.This was for the best - as before, in order to navigate to the
next/previous, we would focus the actual element, which would hide the view, and reopen the view entirely.This was not reliable and involved hacks to make it work. Furthermore, we had to alert screen reader users to indicate the focus change that was happening. Now, we have a better approach for
next/previousnavigation, and we use it - implementations provide string values in theirprovideNextContent/providePreviousContentfunctions, and theAccessibleViewServicetakes care of the rest.As a result, the content of the accessible view is updated and there's no focus change.
There were a few places where we were returning
''fromprovideContent, which should never happen. I've improved thewhenclauses so providers only get created if there's going to be content and will throw now for unexpected cases. Henning Dieterichs (@hediet) and Alex Ross (@alexr00) inline completions and comments are examples of that if you want to look at those changes.