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

A11y for scrollnode #1188

Merged
merged 39 commits into from
Oct 29, 2018
Merged

Conversation

wsdwsd0829
Copy link
Contributor

No description provided.

@wsdwsd0829
Copy link
Contributor Author

becuse ASScollView is not backed by _ASDisplayView but UIScrollView.

@@ -271,4 +271,19 @@ - (NSArray *)accessibilityElements

@end

@implementation ASDisplayNode (AccessibilityInternal)

- (NSArray *)accessibilityElements {
Copy link
Contributor

Choose a reason for hiding this comment

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

Braces on new line

@@ -52,6 +52,10 @@ - (void)didMoveToWindow
}
}

- (NSArray *)accessibilityElements {
Copy link
Contributor

Choose a reason for hiding this comment

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

Braces on newline

Copy link
Member

@nguyenhuy nguyenhuy left a comment

Choose a reason for hiding this comment

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

Aside nits pointed out by @maicki, LGTM. Thanks!

@ghost
Copy link

ghost commented Oct 27, 2018

🚫 CI failed with log

@ghost
Copy link

ghost commented Oct 27, 2018

🚫 CI failed with log

@maicki
Copy link
Contributor

maicki commented Oct 27, 2018

@wsdwsd0829 The test will not pass if the accessibility inspector is not running (or was at least launched for the simulator we are testing on once). The reason is that calling [subnode accessibilityElementCount] that will call the same method on the view of the node will call through to -[ASDisplayNode accessibilityElements] only if accessibility is enabled. Otherwise it will just return 0.

We had the same issue with #1069 a while back. I would recommend handling it the same way we did in #1069 and disable the lines that are failing currently.

@maicki
Copy link
Contributor

maicki commented Oct 29, 2018

Thanks @wsdwsd0829 for working on this!

@maicki maicki merged commit 99fd25c into TextureGroup:master Oct 29, 2018
mikezucc pushed a commit to mikezucc/Texture that referenced this pull request Nov 7, 2018
* fix SIMULATE_WEB_RESPONSE not imported TextureGroup#449

* Fix to make rangeMode update in right time

* remove uncessary assert

* Fix collection cell editing bug for iOS 9 & 10

* Revert "Fix collection cell editing bug for iOS 9 & 10"

This reverts commit 06e18a1.

* Add a11y support for ASSCrollNode.

* Changelog

* Clean up.

* fix braces

* add test

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

Successfully merging this pull request may close these issues.

3 participants