Skip to content

Make sure the Label Edit in ListView has correct position in accessibility tree #9782

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

Conversation

SimonZhao888
Copy link
Member

@SimonZhao888 SimonZhao888 commented Aug 25, 2023

Fixes #7263

Proposed changes

  • Add a variable to the ListView to record the ListViewSubItem to which the Label Edit belongs.
  • Remove the code related to Label Edit in ListViewAccessibleObject class.
  • Adjust the ListViewSubItemAccessibleObject and ListViewLabelEditAccessibleObject classes so that the Label Edit will be displayed under the ListViewSubItem node when constructing the tree structure.

Customer Impact

  • The control of LabelEdit will show under ListViewSubItem.

Regression?

  • No

Risk

  • Minimal

Screenshots

Before

Label Edit is at the same level as the List item and is displayed under the root node of the List.
image

After

Label Edit displays under the edited cell.
image

Test methodology

  • Manual (using inspect )

Accessibility testing

Test environment(s)

  • 8.0.100-preview.7.23376.3
Microsoft Reviewers: Open in CodeFlow

@SimonZhao888 SimonZhao888 requested a review from a team as a code owner August 25, 2023 04:46
@ghost ghost assigned SimonZhao888 Aug 25, 2023
@SimonZhao888 SimonZhao888 changed the title Issue 7263 fix label edit show in correct position Make sure the Label Edit in ListView has correct position in accessibility tree Aug 25, 2023
@ghost ghost added the waiting-author-feedback The team requires more information from the author label Aug 25, 2023
@Epica3055
Copy link
Member

Is it possible to write UnitTest?

@ghost ghost removed the waiting-author-feedback The team requires more information from the author label Aug 28, 2023
@SimonZhao888
Copy link
Member Author

Is it possible to write UnitTest?

The relevant test cases have been modified.

@Tanya-Solyanik Tanya-Solyanik added the waiting-author-feedback The team requires more information from the author label Aug 28, 2023
@ghost ghost removed the waiting-author-feedback The team requires more information from the author label Aug 29, 2023
Copy link
Contributor

@Tanya-Solyanik Tanya-Solyanik left a comment

Choose a reason for hiding this comment

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

Looks good!

@Tanya-Solyanik
Copy link
Contributor

@Epica3055 - please re-review and unblock the merge if all your comments are addressed

@SimonZhao888 SimonZhao888 merged commit f621c32 into dotnet:main Aug 30, 2023
halgab pushed a commit to halgab/winforms that referenced this pull request Aug 30, 2023
…ility tree (dotnet#9782)

* Adjusting the position of the LabelEdit in the accessibility tree

* Update codes

* Update code style and test cases

* Add back the property of FragmentRoot

* Update code style

---------

Co-authored-by: Simon Zhao (Beyondsoft Corporation) (from Dev Box) <v-weidzh@microsoft.com>
@ghost ghost locked as resolved and limited conversation to collaborators Sep 29, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Label edit in ListView has incorrect position in accessibility tree
3 participants