-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Implement UIA Invoke Method #11874
Merged
Merged
Implement UIA Invoke Method #11874
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
2f77b71
Implement Invoke
chiaramooney e0779e4
Change files
chiaramooney ddad53f
Format
chiaramooney da2dbbd
Adjust Call
chiaramooney 50a5e90
Adjust Call
chiaramooney e39a92d
Address Feedback
chiaramooney 352b505
Format
chiaramooney 2c1bcc9
Fix
chiaramooney 10b6a31
Merge
chiaramooney c80f7bc
Address Feedback
chiaramooney 223257c
Merge
chiaramooney 50d480a
Fix
chiaramooney c2d7e04
Remove
chiaramooney 2680a00
Fix
chiaramooney 57fe0ba
Format
chiaramooney b41a392
Fix UIA Tree Issue
chiaramooney f44b187
Address Feedback
chiaramooney 82749ed
Implement Invoke
chiaramooney b7fd10f
Change files
chiaramooney 83e4197
Merge branch 'main' of https://github.com/microsoft/react-native-wind…
chiaramooney 1497fec
Remove Unneeded
chiaramooney beaab47
Format
chiaramooney 4d84bd8
Merge branch 'main' into cm-fabric-invoke
chiaramooney File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
change/react-native-windows-fcb20088-d74a-479f-8b41-d95d797de8a4.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"type": "prerelease", | ||
"comment": "Implement Invoke", | ||
"packageName": "react-native-windows", | ||
"email": "[email protected]", | ||
"dependentChangeType": "patch" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 think it's possible we could/should decouple this from
accessibilityRole
. Regardless of role, if we chould just check ifonAccessibilityTap
exists on the element, and if it does, return we're IInvokable, otherwise, not invokable. Thoughts?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.
Couple of thoughts:
onAccessibilityTap
prop can be specified by any control. So, with this change, developers would also now be able to make controls Invokable that shouldn't have that UIA pattern. i.e. You could specify onAccessibilityTap on a Switch control, and it would have the Invoke pattern when it should only support the Toggle pattern.UIA Reference: https://learn.microsoft.com/en-us/windows/win32/winauto/uiauto-supportbuttoncontroltype
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 think for JS-based controls written from the ground up, there needs to be ownership on the dev's part. We should document how these things interact and provide guidance, ideally, but we should also provide our own control offerings via FURN that solve these problems for them so they don't have to think about them as much.
My 2c:
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.
Some of those sound like things we could possibly make the JS start creating yellowboxes for.