-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Introduce AutomationProperties.ExcludedWithChildren #1815
Conversation
AutomationProperties still needs to be wired up for proper testing. For now, comment out Button and Label handler registration in AppHostBuilderExtensions
@@ -25,7 +25,7 @@ public static string SetContentDescription(this global::Android.Views.View Contr | |||
return _defaultContentDescription; | |||
} | |||
|
|||
public static void SetFocusable(this global::Android.Views.View Control, Element Element, ImportantForAccessibility? _defaultImportantForAccessibility = null) | |||
public static void SetImportantForAccessibility(this global::Android.Views.View Control, Element Element, ImportantForAccessibility? _defaultImportantForAccessibility = null) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Renamed to SetImportantForAccessibility
because (1) focusable was a misleading name, and referred to the native focusable property that was formerly misused and (2) has since been removed. (3) The new name better reflects the method and aligns better with the naming pattern that related methods follow on both Android and iOS (of using the name of the relevant native api affected)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The name ExcludedWithChildren
is a bit iffy as it is a bit confusing, but it is what it is doing, soooo LGTM?
Description of Change
Introduce
AutomationProperties.ExcludedWithChildren
property,AutomationProperties.ExcludedWithChildren
supplements the existingAutomationProperties.IsInaccessibleTree
by enabling developers to remove the specified control and all its children from the accessibility tree. The two properties together match up to what the XCT SemanticInclusion property offers.It maps to
ImportantForAccessibility.NoHideDescendants
on Android, and toAccessibilityElementsHidden
on iOS.Additions made
AutomationProperties.ExcludedWithChildren