Skip to content

A11y for scrollnode - #1188

Merged
maicki merged 39 commits into
TextureGroup:masterfrom
wsdwsd0829:a11y-for-scrollnode
Oct 29, 2018
Merged

maicki merged 39 commits into
TextureGroup:masterfrom
wsdwsd0829:a11y-for-scrollnode

Conversation

@wsdwsd0829

Copy link
Copy Markdown
Contributor

No description provided.

@wsdwsd0829

Copy link
Copy Markdown
Contributor Author

becuse ASScollView is not backed by _ASDisplayView but UIScrollView.


@implementation ASDisplayNode (AccessibilityInternal)

- (NSArray *)accessibilityElements {

Copy link
Copy Markdown
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

Comment thread Source/ASScrollNode.mm Outdated
}
}

- (NSArray *)accessibilityElements {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Braces on newline

@nguyenhuy nguyenhuy left a comment

Copy link
Copy Markdown
Member

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

ghost commented Oct 27, 2018

Copy link
Copy Markdown

🚫 CI failed with log

@ghost

ghost commented Oct 27, 2018

Copy link
Copy Markdown

🚫 CI failed with log

@maicki

maicki commented Oct 27, 2018 •

Copy link
Copy Markdown
Contributor

@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

maicki commented Oct 29, 2018

Copy link
Copy Markdown
Contributor

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