-
Notifications
You must be signed in to change notification settings - Fork 701
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
Adds keyboard shortcuts to PM UI Preview Window, License Acceptance and File Conflict dialog #3967
Adds keyboard shortcuts to PM UI Preview Window, License Acceptance and File Conflict dialog #3967
Conversation
src/NuGet.Clients/NuGet.PackageManagement.UI/Converters/AcceleratorKeyConverter.cs
Outdated
Show resolved
Hide resolved
...Get.Clients.Tests/NuGet.PackageManagement.UI.Test/Converters/AcceleratorKeyConverterTests.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you run Accessibility Insights before/after these changes? I don't think it's a hard violation, but there may have been a warning that your PR resolves.
Also, I think it's just good to make sure AI reflects the new change.
src/NuGet.Clients/NuGet.PackageManagement.UI/Converters/AcceleratorKeyConverter.cs
Outdated
Show resolved
Hide resolved
@@ -265,16 +265,20 @@ | |||
<value>File Conflict</value> | |||
</data> | |||
<data name="Button_No" xml:space="preserve"> | |||
<value>No</value> | |||
<value>_No</value> | |||
<comment>Button_Yes, Button_No, ButtonYesToAll, Button_NoToAll should have underscore in different letters. See https://docs.microsoft.com/en-us/windows/uwp/design/input/access-keys#choose-access-keys</comment> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd suggest checking with localization team to make sure they understand this, if you haven't already.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will follow up with them once this PR is merged.
This PR has been automatically marked as stale because it has no activity for 7 days. It will be closed if no further activity occurs within another 7 days of this comment. If it is closed, you may reopen it anytime when you're ready again, as long as you don't delete the branch. |
Reopening to finish work. |
f91058e
to
cd9cc5f
Compare
Code changed a lot, and new Approval rules
src/NuGet.Clients/NuGet.PackageManagement.UI/NuGet.PackageManagement.UI.csproj
Outdated
Show resolved
Hide resolved
src/NuGet.Clients/NuGet.PackageManagement.UI/Xamls/FileConflictDialog.xaml
Outdated
Show resolved
Hide resolved
@@ -213,6 +213,7 @@ | |||
Grid.Column="1" | |||
Focusable="False" | |||
Margin="{TemplateBinding Padding}" | |||
RecognizesAccessKey="True" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added to support access keys in Checkbox, disabled in this style before this change.
46e1146
to
a2250f8
Compare
Bug
Fixes: NuGet/Home#10691
Regression? Last working version:
Description
Accessibility improvement:
PR Checklist
PR has a meaningful title
PR has a linked issue.
Described changes
Tests
[ ] Automated tests added[ ] Test exceptionDocumentation
[ ] Documentation PR or issue filledValidation
Manual validation: it shows the keyboard shortcuts when pressing 'Alt' key.
File Conflict Dialog
After:

Accessibility Insights test:

Preview Window Dialog
After:

Accessibility Insights test:

License Acceptance Window Dialog
Affter:

Accessibility Insights test:
