Skip to content
This repository was archived by the owner on Feb 5, 2025. It is now read-only.

Conversation

@shiki
Copy link
Contributor

@shiki shiki commented Dec 10, 2019

Fixes wordpress-mobile/WordPress-iOS#13062. This is a dependency of wordpress-mobile/WordPress-iOS#13067.

Changes

First Selected Element

Before After
RPReplay_Final1575989720 2019-12-10 07_56_34 RPReplay_Final1575989420 2019-12-10 07_54_14

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

  1. Use the branch in [VoiceOver] Update WordPressAuth to 1.10.5-beta.3 WordPress-iOS#13067.
  2. Log out.
  3. Turn VoiceOver on.
  4. Tap on the Login button.
  5. Confirm that:
    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

  1. Use the same WPiOS branch
  2. Log out.
  3. Turn VoiceOver on.
  4. Tap on the Sign Up button.
  5. Confirm that:
    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

  • I have considered if this change warrants user-facing release notes and have added them to RELEASE-NOTES.txt if necessary.
  • If it's feasible, I have added unit tests.
  • Create a release version

Hi @jaclync! Can I bother you with this one? 🙂

@shiki shiki added the enhancement New feature or request label Dec 10, 2019
@shiki shiki force-pushed the fix/login-voiceover-enhancements branch from a5586de to a839b76 Compare December 10, 2019 13:15
@shiki shiki mentioned this pull request Dec 10, 2019
@jaclync
Copy link
Contributor

jaclync commented Dec 12, 2019

Hey @shiki sure thing! sorry I was lost in my email yesterday, reviewing now 😄

Copy link
Contributor

@jaclync jaclync left a 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!
Copy link
Contributor

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?

Copy link
Contributor Author

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!
Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 59cc2ac.

@shiki
Copy link
Contributor Author

shiki commented Dec 12, 2019

Thank you, @jaclync! 🙏

@shiki shiki merged commit 85afe0c into develop Dec 12, 2019
@shiki shiki deleted the fix/login-voiceover-enhancements branch December 12, 2019 16:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancement New feature or request VoiceOver

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[VoiceOver] Login and Signup Dialog concerns

3 participants