-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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
Add automation properties to expander-style settings #13032
Conversation
@@ -146,6 +146,30 @@ namespace winrt::Microsoft::Terminal::Settings::Editor::implementation | |||
} | |||
} | |||
|
|||
if (const auto& child{ GetTemplateChild(L"Expander") }) | |||
{ | |||
if (const auto& expander{ child.try_as<Microsoft::UI::Xaml::Controls::Expander>() }) |
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.
This is just to ensure we have the correct control, right? If there was a template child named Expander we wouldn't want to give it these properties unless it actually was an expander?
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.
Yeah I like to think of this as just a sanity check! Would rather have it than not though
Hello @DHowett! Because this pull request has the p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (
|
## Summary of the Pull Request Make sure we set `Name` and `FullDescription` on expander-style settings in the SUI ## PR Checklist * [x] Closes #13019 * [x] CLA signed. If not, go over [here](https://cla.opensource.microsoft.com/microsoft/Terminal) and sign the CLA * [ ] Tests added/passed * [ ] Documentation updated. If checked, please file a pull request on [our docs repo](https://github.com/MicrosoftDocs/terminal) and link it here: #xxx * [ ] Schema updated. * [x] I work here ## Validation Steps Performed Accessibility insights now shows the name/full description for the expander-style settings (cherry picked from commit 71cbdc8) Service-Card-Id: 81446420 Service-Version: 1.13
🎉 Handy links: |
🎉 Handy links: |
Summary of the Pull Request
Make sure we set
Name
andFullDescription
on expander-style settings in the SUIPR Checklist
Validation Steps Performed
Accessibility insights now shows the name/full description for the expander-style settings