-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
fix(dialog): Release focus after style changes on close #4069
Conversation
All 655 screenshot tests passed for commit 52cd2dc vs. |
Testing in Safari using the catalog page against this branch, it seems like the problem isn't fully resolved. It also seems like it might be somewhat dependent on how far VoiceOver is into its announcements before you close the dialog. Even without this change, sometimes VO will automatically navigate to the top bar of the app after announcing the cancel button and dialog. (The black outline is the screen reader still navigated onto the cancel button in the now-closed dialog) Also, I don't think this change will do anything for the other issue mentioned in #4033 RE opening the confirmation or simple dialog and the screen reader not properly navigating into it? |
All 655 screenshot tests passed for commit 928d848 vs. |
This change fixes Safari + VoiceOver on Mac. But doesn't fix iOS Safari + VoiceOver issue because of iOS platform limitation. Apparently Workaround for this iOS issue would be to send button element selector that dialog needs to restore focus upon close instead of relying on |
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.
To clarify the above point, iOS Safari isn't registering activeElement
at all, hence the problem.
LGTM for desktop Safari.
…onents-web into fix/dialog_focus_voiceover
… fix/dialog_focus_voiceover
Codecov Report
@@ Coverage Diff @@
## master #4069 +/- ##
=======================================
Coverage 98.67% 98.67%
=======================================
Files 126 126
Lines 5603 5603
Branches 747 747
=======================================
Hits 5529 5529
Misses 74 74
Continue to review full report at Codecov.
|
All 663 screenshot tests passed for commit 02c8f11 vs. |
Fixes #4033