Our graphical user interface (GUI, or commonly abbreviated as UI) components follow a special set of compliance standards. Changes to these components will be evaluated by the product team to ensure we can ship them in the next Visual Studio (VS) release without violations. The goal of this guide is to clarify expectations for, and our feedback on, any pull-request which modifies our UI components, namely our VSIX which ships in VS.
If we find issues, the NuGet team will work with the pull-request author to resolve the issues.
Changes to localized resources or modifying UI elements which contain them means we must perform localizability testing to ensure our UI displays correctly in various languages. We follow the guidance in the Microsoft Localizability Testing document. For more information, see Testing localizability.
A member of the product team will be able to help in testing of any changes affecting localizability. If you perform any testing on your own, please mention this in your pull-request (eg, indicate your methodology and/or provide screenshots).
Our methodology for testing changes to localization in our UI components is with a technique called pseudolocalization (PLOC). For more information, see Pseudolocalization.
There are occasions where WPF, .NET framework, or VS platform behavior requires custom control modifications to be compliant with accessibility. The following table lists controls and a basic use case for each one.
Custom Control | Criteria | Reason |
---|---|---|
ButtonHyperlink |
A Hyperlink which doesn't function by opening an external URL (web page), but instead performs some action within VS. |
Assistive technologies read the control type, and a Hyperlink is expected to behave in a way consistent with Web page hyperlinks. The customization sets the control type as a Button . |
We use the Accessibility Insights For Windows tool to validate our UI meets accessibility standards. Although no tool catches every accessibility problem, it provides a baseline of how the UI change may affect assistive technologies.
The Accessibility Insights FastPass needs to be run on the parent control being affected. A screenshot of the result can be placed in the PR description.
Windows Narrator is the screen-reader we use for testing.
- Ensuring that the screen-reader is able to announce all visible controls and text is ideal.
- Generally, Accessibility Insights will catch potential issues, but sometimes a quick test with Narrator reveals more.