Skip to content

Accessibility Elements Are Accessible Even Though Parent Has accessibilityElementsHidden Set To true #694

Description

@fruitcoder

Since I'm fighting with this issue for several days now, I finally created a simple sample project to reproduce my problem. The issue is that accessibilityElementsHidden doesn't seem to be working in Texture. In the sample project you can see a simple hierarchy with two overlapping nodes containing a text node (which is accessible). When setting accessibilityElementsHidden to true for the underlying node, the text node (which is a direct subnode) should not be accessible via UITests/VoiceOver etc. but with the AccessbilityInspector you can easily verify that it's still accessible.

The weird thing is that the properties are correctly synced to the underlying UIViews, so
p (BOOL)[(UIView *)0x7fd573216310 accessibilityElementsHidden] will be YES for the address of the node1's view.

The second tab shows the expected behavior in UIKit: The label1 is not accessible, since it's superview has accessibilityElementsHidden set to true.

Texture Version: Texture (2.5.1)

AccessibilityBug.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions