-
Notifications
You must be signed in to change notification settings - Fork 11
[VoiceOver] Login and Signup enhancements #166
Conversation
a5586de to
a839b76
Compare
VoiceOver auto-selects the first element in the view hierarchy. Unfortunately, the dismiss button is the first in the hierarchy since it needs to cover everything outside of the buttons view. This changes the `accessibilityElements` order so VoiceOver will prioritize the buttons view.
d159406 to
9044ce8
Compare
|
Hey @shiki sure thing! sorry I was lost in my email yesterday, reviewing now 😄 |
jaclync
left a comment
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.
Tested on a device, and I was able to dismiss the Log In / Sign Up sheets by either the VoiceOver escape gesture (Z) or the Dismiss button after the primary actions!
Code: ✅ (two non-blocking nits)
Testing: 💯
| open var appleTapped: (() -> Void)? | ||
|
|
||
| /// The big transparent (dismiss) button behind the buttons | ||
| @IBOutlet weak var dismissButton: UIButton! |
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.
nit: could this be private?
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 don't consider access level concerns as nitpicking. I believe they're quite important. 😉 I appreciate you for pointing these out. Fixed in 59cc2ac.
| open var appleTapped: (() -> Void)? | ||
|
|
||
| /// The big transparent (dismiss) button behind the buttons | ||
| @IBOutlet weak var dismissButton: UIButton! |
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.
nit: could this be private?
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.
Fixed in 59cc2ac.
|
Thank you, @jaclync! 🙏 |
Fixes wordpress-mobile/WordPress-iOS#13062. This is a dependency of wordpress-mobile/WordPress-iOS#13067.
Changes
First Selected Element
When opening the Login or Signup dialog, the first button is now selected by VoiceOver instead of the Dismiss button.
Dismissal using Escape Gesture
I added support for dismissing the dialog using VoiceOver's escape gesture — making a Z with 2 fingers.
Testing
Login
a. The first selected (and announced) element is the first button and not the Dismiss button
b. You can dismiss dialog by using the VoiceOver escape gesture (Z)
Sign up
a. The first selected (and announced) element is the first button and not the Dismiss button
b. You can dismiss dialog by using the VoiceOver escape gesture (Z)
Submitter Checklist
RELEASE-NOTES.txtif necessary.Hi @jaclync! Can I bother you with this one? 🙂