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

Adding Text pattern to UpDownControls #3878

Conversation

vladimir-krestov
Copy link
Contributor

@vladimir-krestov vladimir-krestov commented Sep 10, 2020

Fixes #1588

Proposed changes

  • Enable Text pattern support for UpDownEditAccessibleObject

Customer Impact

  • Visually impaired users will be able to read and interact with the text content of a UpDownControls

Regression?

  • No

Risk

  • Minimal

Before

  • Narrator does not announce the text navigation and selection of a UpDownControls

After

  • Narrator announces the text content of a UpDownControls (navigation, selection)

Test methodology

  • Manual testing
  • CTI
  • Unit tests

Accessibility testing

  • Using Narrator and Inspect

Test environment(s)

  • .Net 5.0 Version: 5.0.0-rc.1.20431.5
  • Microsoft Windows [Version 10.0.19041.450]
Microsoft Reviewers: Open in CodeFlow

@vladimir-krestov vladimir-krestov requested a review from a team as a code owner September 10, 2020 19:16
@vladimir-krestov vladimir-krestov added the 📬 waiting-for-testing The PR is awaiting manual testing by the primary team; no action is yet required from the author(s) label Sep 10, 2020
@vladimir-krestov vladimir-krestov marked this pull request as draft September 10, 2020 20:55
@vladimir-krestov vladimir-krestov force-pushed the Issue_1588_AddingTextPattern_to_UpDownControls branch from 276c4bf to 71c077d Compare September 18, 2020 14:27
@codecov
Copy link

codecov bot commented Sep 18, 2020

Codecov Report

Merging #3878 into release/5.0-rc2 will decrease coverage by 30.92951%.
The diff coverage is 82.14286%.

@@                    Coverage Diff                     @@
##           release/5.0-rc2       #3878          +/-   ##
==========================================================
- Coverage         67.85203%   36.92252%   -30.92951%     
==========================================================
  Files                 1414         924         -490     
  Lines               507525      251004      -256521     
  Branches             41184       36986        -4198     
==========================================================
- Hits                344366       92677      -251689     
+ Misses              157033      152877        -4156     
+ Partials              6126        5450         -676     
Flag Coverage Δ
#Debug 36.92252% <82.14286%> (-30.92952%) ⬇️
#production 36.92252% <82.14286%> (-0.00340%) ⬇️
#test ?

Flags with carried forward coverage won't be shown. Click here to find out more.

@vladimir-krestov
Copy link
Contributor Author

I implemented Text pattern for UpDownEdit and now it has the following behavior (I'm clicking the Up keyboard arrow):
rHIHl8liOb
Text pattern works expectedly, but the Narrator blue rectangle jumps when clicking "Up/Down" keyboard arrows when NumericUpDown has the 2-digit value.
This behavior can seem confusing but I think all right because this is expected Text pattern behavior. Like in RichTextBox that supports Text pattern from Win32:
5Y1bRNe6Hp
Here you can see the same Narrator steps:

  • Click the Up/Down keyboard arrow
  • Narrator reads a whole line where the caret is
  • Narrator shows the blue rectangle for a character after the caret

I think the current NumericUpDown Text pattern behavior is correct. @merriemcgaw, @Tanya-Solyanik, could you please approve my thoughts?

@merriemcgaw
Copy link
Member

merriemcgaw commented Sep 18, 2020

@SergeySmirnov-Akvelon @vladimir-krestov - does this impact the non-narrator situation where currently up/down arrows are used to increase/decrease the value in the box? Would that still work with this text pattern?

@vladimir-krestov
Copy link
Contributor Author

@merriemcgaw No, Text pattern doesn't impact the non-narrator situation. This is needed only to Narrator announces UpDown characters correctly.
You won't notice the change without Narrator.
@merriemcgaw Will we keep the current implementation? (#3878 (comment))

@vladimir-krestov vladimir-krestov marked this pull request as ready for review September 21, 2020 22:06
@vladimir-krestov vladimir-krestov added the waiting-review This item is waiting on review by one or more members of team label Sep 21, 2020
@vladimir-krestov vladimir-krestov force-pushed the Issue_1588_AddingTextPattern_to_UpDownControls branch from 71c077d to 132eb7c Compare September 21, 2020 22:08
@merriemcgaw
Copy link
Member

@vladimir-krestov that looks good to me. Does the Narrator user get to head over to the up/down controls next to the edit and use them as usual?
@Olina-Zhang, let us know the test results ASAP.
@SteveCarrollMSFT this should be the last thing we bring for the TextPattern support, and then we're compliant for this UIA pattern!

Copy link
Member

@RussKie RussKie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to tighten up the validation.

@ghost ghost added the 📭 waiting-author-feedback The team requires more information from the author label Sep 21, 2020
@RussKie RussKie added the Servicing-consider .NET Shiproom label indicating a PR seeks to enter into a branch under Tell-Mode criteria label Sep 21, 2020
@ghost ghost removed the 📭 waiting-author-feedback The team requires more information from the author label Sep 22, 2020
@vladimir-krestov vladimir-krestov force-pushed the Issue_1588_AddingTextPattern_to_UpDownControls branch from 132eb7c to fb976be Compare September 22, 2020 08:08
@vladimir-krestov
Copy link
Contributor Author

@merriemcgaw Now it has some differences, but a user hears the same.
image

In the rest, UpDown controls work as usual. A user can navigate to these controls and move from them to other controls on a form using "Tab".

@vladimir-krestov vladimir-krestov removed the 📬 waiting-for-testing The PR is awaiting manual testing by the primary team; no action is yet required from the author(s) label Sep 22, 2020
@vladimir-krestov
Copy link
Contributor Author

Testers approved the fix ✔️
But there are some test issues:

  • Narrator doesn't announce a new value sometimes if to click Up/Down buttons using a mouse
    image
    It happens in the first running. Also, using Narrator with a mouse is not the common scenario. So moved the issue to .Net 6.0. It won't be fixed here.
  • The Narrator blue rectangle has some little differences in different OS versions. They are not critical for a user. And it seems it is Narrator issue.

But the main Issue #1588 was fixed.

@RussKie RussKie added Servicing-approved .NET Shiproom approved the PR for merge and removed waiting-review This item is waiting on review by one or more members of team Servicing-consider .NET Shiproom label indicating a PR seeks to enter into a branch under Tell-Mode criteria labels Sep 23, 2020
@vladimir-krestov vladimir-krestov force-pushed the Issue_1588_AddingTextPattern_to_UpDownControls branch from fb976be to 7b9b41c Compare September 23, 2020 10:23
@RussKie RussKie merged commit 415a152 into dotnet:release/5.0-rc2 Sep 23, 2020
@vladimir-krestov vladimir-krestov deleted the Issue_1588_AddingTextPattern_to_UpDownControls branch November 4, 2020 07:36
@ghost ghost locked as resolved and limited conversation to collaborators Jan 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Servicing-approved .NET Shiproom approved the PR for merge
Projects
None yet
3 participants