-
Notifications
You must be signed in to change notification settings - Fork 403
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
fix: re-use parent's accessibility property #967
Conversation
@@ -196,7 +199,24 @@ + (NSDictionary *)dictionaryForElement:(id<FBXCElementSnapshot>)snapshot | |||
return [@([wrappedSnapshot isWDVisible]) stringValue]; | |||
}, | |||
@"accessible": ^{ | |||
return [@([wrappedSnapshot isWDAccessible]) stringValue]; | |||
if (parentAccessible) { |
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.
I am not quite convinced about this change, because:
- It breaks the backward compatiblity
- It does not properly calculate the accessibility value for tree elements
- It causes unnecessary code duplication
@swngarg-lt I have created #968 The change there is breaking, but it only affects debug into of an accessibility audit element. Most likely it would also require a major version bump. Nevertheless please check if it solves your original problem. |
NOTE: only for source api (with useJSONSource)