[Accessibility][ScreenReader]: Fixing tooltip text announcing by NVDA/Narrator#2074
Conversation
Codecov Report
@@ Coverage Diff @@
## release/3.1 #2074 +/- ##
=====================================================
+ Coverage 26.4715% 26.51825% +0.04675%
=====================================================
Files 806 806
Lines 268111 268121 +10
Branches 38071 38073 +2
=====================================================
+ Hits 70973 71101 +128
+ Misses 192056 191941 -115
+ Partials 5082 5079 -3
|
|
Business case approved for 3.1 from the feature team side. |
|
@vladimir-krestov has the test team verified this fix already? Are you ready for review now? |
|
Not tested yet. |
ffb67ef to
2dd7fe1
Compare
|
Changed the implementation. |
|
The fix has some test issues. |
| /// </summary> | ||
| private void AnnounceText(Control tool, string text) | ||
| { | ||
| tool?.AccessibilityObject.RaiseAutomationNotification( |
There was a problem hiding this comment.
Should you use the elvis operator ? after AccessibilityObject as well?
There was a problem hiding this comment.
Any need to validate Automation is not null?
There was a problem hiding this comment.
You are right. Sometimes AccessibleObject property returns null. I need to handle it.
There was a problem hiding this comment.
Thanks, fixed.
|
#2096 is merged, so I can to continue work on this PR. |
2dd7fe1 to
3914bb7
Compare
|
Testers approved this fix. ✔️ |
Fixes #2073
Original bug: 987952
Proposed changes
- Add IToolTip interface and implement it to unite elements (Control, ToolStripItem, DataGridViewElement) which can have a tooltip (this is necessary to the correct, simple and short implementation of raising UIA notification.)Customer Impact
Regression?
Risk
Screenshots
Before
After
Test methodology
Accessibility testing
Test environment(s)
Microsoft Reviewers: Open in CodeFlow