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

Making text wrap on Add Widget dialog #3009

Merged
merged 8 commits into from
May 31, 2024

Conversation

guimafelipe
Copy link
Contributor

@guimafelipe guimafelipe commented May 29, 2024

Summary of the pull request

This PR has some changes to make text wrapping on the "Add Widget" dialog, fixing an accessibility issue for when the text is too large to fit the width and the content is clipped. 

References and relevant issues

https://dev.azure.com/microsoft/OS/_workitems/edit/49360580

Detailed description of the pull request / Additional comments

There are two types of NavigationViewItem in this dialog: the extension titles and the widget titles. The extension titles are only a text. Changing the content label to be a TextBlock instead of plain text allows us to wrap it.
For the widget titles, it was a StackPanel because of it consisting of a image and a text, which is not capable of wrapping. This was changed to a Grid with two columns, and the content of the text column have a "star" width size. This way, the text inside it is also set to wrap and the content is now fully visible even when text scale is at 200%.

Validation steps performed

Example in 100% size (before and after):
image

image

Example in 200% size (before and after):
image

image

PR checklist

  • Closes #xxx
  • Tests added/passed
  • Documentation updated

@guimafelipe guimafelipe marked this pull request as ready for review May 29, 2024 03:27
@guimafelipe guimafelipe merged commit 8b9842c into main May 31, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants