Skip to content

Adding supports of UIA provider for ToolStripPanel#7459

Merged
Tanya-Solyanik merged 1 commit intodotnet:mainfrom
NikitaSemenovAkvelon:Issue_3421-Adding-ToolStripPanel_UIAProviderSupport
Jul 24, 2022
Merged

Adding supports of UIA provider for ToolStripPanel#7459
Tanya-Solyanik merged 1 commit intodotnet:mainfrom
NikitaSemenovAkvelon:Issue_3421-Adding-ToolStripPanel_UIAProviderSupport

Conversation

@NikitaSemenovAkvelon
Copy link
Contributor

@NikitaSemenovAkvelon NikitaSemenovAkvelon commented Jul 20, 2022

Partially implements #3421

Proposed changes

  • Updated "SupportsUiaProviders" flag to ToolStripPanel
  • Added and implemented ToolStripPanel.ToolStripPanelAccessibleObject
  • Added unit tests

Customer Impact

  • Improving development experience for ToolStripPanel control accessibility.

Regression?

  • No

Risk

  • Minimal

Screenshots

Before

image

After

image

Test methodology

  • Manually
  • Unit testing

Accessibility testing

  • Inspect

Test environment(s)

  • 7.0.100-preview.5.22307.18
Microsoft Reviewers: Open in CodeFlow

@NikitaSemenovAkvelon NikitaSemenovAkvelon requested a review from a team as a code owner July 20, 2022 10:18
@NikitaSemenovAkvelon NikitaSemenovAkvelon marked this pull request as draft July 20, 2022 10:20
@NikitaSemenovAkvelon NikitaSemenovAkvelon force-pushed the Issue_3421-Adding-ToolStripPanel_UIAProviderSupport branch from 087a332 to b30ec09 Compare July 20, 2022 10:24
@NikitaSemenovAkvelon NikitaSemenovAkvelon marked this pull request as ready for review July 20, 2022 10:25
@NikitaSemenovAkvelon NikitaSemenovAkvelon marked this pull request as draft July 20, 2022 11:47
@ghost ghost added the draft draft PR label Jul 20, 2022
@NikitaSemenovAkvelon NikitaSemenovAkvelon force-pushed the Issue_3421-Adding-ToolStripPanel_UIAProviderSupport branch from b30ec09 to 1cd81f9 Compare July 20, 2022 12:05
@NikitaSemenovAkvelon NikitaSemenovAkvelon marked this pull request as ready for review July 20, 2022 12:23
@ghost ghost removed the draft draft PR label Jul 20, 2022
@Tanya-Solyanik
Copy link
Contributor

@NikitaSemenovAkvelon - could you please describe your manual testing a bit? I wonder if you tested different layout within the toolstrip panel. Also consider adding your manual test to the WinformsControlsTest

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, but please describe your manual testing a bit.

@Tanya-Solyanik Tanya-Solyanik added the waiting-author-feedback The team requires more information from the author label Jul 21, 2022
@ghost ghost removed the waiting-author-feedback The team requires more information from the author label Jul 22, 2022
@NikitaSemenovAkvelon NikitaSemenovAkvelon force-pushed the Issue_3421-Adding-ToolStripPanel_UIAProviderSupport branch from 1cd81f9 to 83f189d Compare July 22, 2022 05:07
@NikitaSemenovAkvelon
Copy link
Contributor Author

@NikitaSemenovAkvelon - could you please describe your manual testing a bit? I wonder if you tested different layout within the toolstrip panel. Also consider adding your manual test to the WinformsControlsTest

For testing I used a form from https://docs.microsoft.com/en-us/dotNet/api/system.windows.forms.toolstrippanel?view=netframework-3.5. If it necessary I'll add it to WinformsControlsTest.

@Tanya-Solyanik
Copy link
Contributor

For testing I used a form from https://docs.microsoft.com/en-us/dotNet/api/system.windows.forms.toolstrippanel?view=netframework-3.5. If it necessary I'll add it to WinformsControlsTest.

I don't think it's necessary because this sample is easily accessible if we are to do more work with this control. WinformsControlsTest exists for our convenience, so that we can easily repeat our scenarios.

return role;
}

return AccessibleRole.Client;
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: we are moving towards more concise code when possible, i.e.

return role == AccessibleRole.Default : AccessibleRole.Client ? role;

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, thank you!

@dreddy-work dreddy-work added the ready-to-merge PRs that are ready to merge but worth notifying the internal team. label Jul 24, 2022
@Tanya-Solyanik Tanya-Solyanik merged commit fb0ce95 into dotnet:main Jul 24, 2022
@ghost ghost added this to the 7.0 RC1 milestone Jul 24, 2022
@Cassie-Li01
Copy link

Verified on latest .NET 7 build .NET 7.0.100-rc.1.22378.6, issue is fixed, screenshot as below:
image

@ghost ghost locked as resolved and limited conversation to collaborators Aug 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

ready-to-merge PRs that are ready to merge but worth notifying the internal team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants