Skip to content
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

Fixes hidden text fields from being read by VoiceOver #1012

Merged
merged 1 commit into from
Aug 13, 2018

Conversation

csabol-stripe
Copy link
Contributor

Summary

Since we are using alpha instead of the hidden property for text fields we aren't displaying (so we can animate),
we need to manually mark our hidden text fields as not an accessibility element. Otherwise VoiceOver thinks they are
valid UI elements.

Motivation

https://jira.corp.stripe.com/browse/IOS-602

Testing

Tested on device with VoiceOver

Since we are using alpha instead of the hidden property for text fields we aren't displaying (so we can animate),
we need to manually mark our hidden text fields as not an accessibility element. Otherwise VoiceOver thinks they are
valid UI elements.
Copy link
Contributor

@danj-stripe danj-stripe left a comment

Choose a reason for hiding this comment

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

Great find!

I'm pretty surprised. I thought that alpha = 0 behaved the same as hidden = YES: https://stackoverflow.com/a/8229779/1196205

I wonder if we have any other places where this'll be a bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants