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

fix: re-use parent's accessibility property #967

Closed
wants to merge 17 commits into from

Conversation

swngarg-lt
Copy link

NOTE: only for source api (with useJSONSource)

@swngarg-lt swngarg-lt changed the title re-use parent's accessibility property fix: re-use parent's accessibility property Jan 7, 2025
@@ -196,7 +199,24 @@ + (NSDictionary *)dictionaryForElement:(id<FBXCElementSnapshot>)snapshot
return [@([wrappedSnapshot isWDVisible]) stringValue];
},
@"accessible": ^{
return [@([wrappedSnapshot isWDAccessible]) stringValue];
if (parentAccessible) {

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 swngarg-lt marked this pull request as draft January 7, 2025 20:38
@mykola-mokhnach
Copy link

@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.

@swngarg-lt swngarg-lt closed this Jan 8, 2025
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.

2 participants