Skip to content

#39649 #39915

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

Draft
wants to merge 18 commits into
base: main
Choose a base branch
from
Draft

#39649 #39915

wants to merge 18 commits into from

Conversation

SabhyaAggarwal
Copy link

@SabhyaAggarwal SabhyaAggarwal commented Jun 5, 2025

Summary of the Pull Request

This PR addresses an accessibility and usability issue in the Command Palette details pane when the system text size is set to 225%. Previously, the details text did not wrap, causing horizontal scrolling and making the content difficult to read. With this fix, the details text should wrap, improving readability and accessibility for users with large text settings.

PR Checklist

Detailed Description of the Pull Request / Additional comments

  • Updated the Command Palette details pane to ensure text wraps correctly at high system text scaling (e.g., 225%).
  • Improved the responsiveness of the details pane for accessibility.
  • Eliminated the need for horizontal scrolling; all content remains visible and readable regardless of system text size.
  • Could someone please validate if the fix(which is too easy to be true)works
  • Reference image of the issue:
    image1

Validation Steps Performed

Not performed yet but will perform

Set system text size to 225% and verified that the details text wraps as expected in the Command Palette.

@SabhyaAggarwal SabhyaAggarwal marked this pull request as ready for review June 5, 2025 17:11
@SabhyaAggarwal
Copy link
Author

Please review

@crutkas crutkas added Needs-Review This Pull Request awaits the review of a maintainer. Product-Command Palette Refers to the Command Palette utility labels Jun 5, 2025
@zadjii-msft
Copy link
Member

Unless my two second review is incorrect, CommandBar.xaml doesn't contain any code for the Details pane. Pretty sure that's in ShellPage.xaml

@SabhyaAggarwal
Copy link
Author

SabhyaAggarwal commented Jun 6, 2025

Hey @zadjii-msft! I understand so I reverted that CommandBar.xaml change and I saw in ShellPage.xaml that it was doing Wrap whole words but links are counted as one so I added a good ol' plain wrap just for hyperlinks.

@SabhyaAggarwal
Copy link
Author

@zadjii-msft could you get this tested and approved

@crutkas crutkas requested a review from niels9001 June 7, 2025 15:02
@crutkas
Copy link
Member

crutkas commented Jun 7, 2025

@niels9001 can you take a look quickly

Copy link
Contributor

@niels9001 niels9001 left a comment

Choose a reason for hiding this comment

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

LGTM!

@SabhyaAggarwal
Copy link
Author

SabhyaAggarwal commented Jun 7, 2025

Thanks a lot @crutkas and @niels9001 for approving my first PR

@SabhyaAggarwal
Copy link
Author

@niels9001 Why hasn't this been merged

Copy link
Member

@zadjii-msft zadjii-msft left a comment

Choose a reason for hiding this comment

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

This doesn't even compile.

@SabhyaAggarwal
Copy link
Author

How doesn’t it compile

@SabhyaAggarwal
Copy link
Author

@zadjii-msft it should compile

@zadjii-msft
Copy link
Member

Did you build the Micrsoft.UI.CmdPal project?

When I tried to test this change locally, I got:

5>D:\dev\public\pt\src\modules\cmdpal\Microsoft.CmdPal.UI\Pages\ShellPage.xaml(94,25): XamlCompiler error WMC0011: Unknown member 'TextWrapping' on element 'HyperlinkButton'

@SabhyaAggarwal
Copy link
Author

It should work as TextWrapping definetely works in WinUI

@SabhyaAggarwal
Copy link
Author

SabhyaAggarwal commented Jun 8, 2025

@zadjii-msft Wait, now try compiling

@SabhyaAggarwal
Copy link
Author

@zadjii-msft I have fixed it now and it should work

@SabhyaAggarwal SabhyaAggarwal requested a review from niels9001 June 9, 2025 07:10

This comment has been minimized.

@SabhyaAggarwal
Copy link
Author

I just synced my fork and spell check is going off???

This comment has been minimized.

@SabhyaAggarwal
Copy link
Author

Again!!!!!!!

@SabhyaAggarwal
Copy link
Author

@niels9001 can you approve this code

@SabhyaAggarwal
Copy link
Author

Plz approve @niels9001(sorry for pinging).

Copy link
Member

@zadjii-msft zadjii-msft left a comment

Choose a reason for hiding this comment

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

This still doesn't actually fix the issue:

image

The text of the hyperlink buttons still doesn't wrap.

Please make sure to actually build and test your proposed fixes before sending a PR. Just guessing at fixes wastes everyone's time.

@crutkas crutkas marked this pull request as draft June 18, 2025 15:07
@zadjii-msft zadjii-msft removed the Needs-Review This Pull Request awaits the review of a maintainer. label Jun 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Product-Command Palette Refers to the Command Palette utility
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants