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

Announcing the heading group, and repo names. #2490

Merged
merged 6 commits into from
Apr 3, 2024

Conversation

dhoehna
Copy link
Contributor

@dhoehna dhoehna commented Mar 29, 2024

Summary of the pull request

  1. Narrator announces the heading of a group of buttons on the main page.
  2. Narrator reads the repo name.
  3. Moved the code for showing the customize DevDrive window to the ViewModel.

References and relevant issues

Detailed description of the pull request / Additional comments

Getting narrator to voice the headings was tricky. The automation property needs to be put on the StackPanel encompassing the buttons.

The tricky part is that adding the name property via x:Uid results in the narrator saying nothing. I had to put the headings in the ViewModel. A side-effect is that the same string is duplicated.

Validation steps performed

PR checklist

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

Movie!

Narrator.mp4

@@ -87,8 +87,8 @@
BackgroundSource="{ThemeResource Setup_Banner_Back}"
OverlaySource="{ThemeResource Setup_Banner_Front}" />

<StackPanel Spacing="{StaticResource SettingsCardSpacing}">
<TextBlock Style="{StaticResource SettingsSectionHeaderTextBlockStyle}" x:Uid="ms-resource:///DevHome.SetupFlow/Resources/MainPage_EnvironmentSetup" />
<StackPanel Spacing="{StaticResource SettingsCardSpacing}" AutomationProperties.Name="{x:Bind ViewModel.MainPageEnvironmentSetupGroupName}">
Copy link
Contributor

Choose a reason for hiding this comment

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

We can set the automation attributes directly from resw.

<data name="MyStackPanel.[using:Microsoft.UI.Xaml.Automation]AutomationProperties.Name" ...

@AmelBawa-msft AmelBawa-msft added the Needs-Second Pull request that needs another approval label Mar 29, 2024
@@ -1608,6 +1608,14 @@
<value>Loading your environments</value>
<comment>Test that tells the user that we're still loading their environments. These environments can be virtual or remote machines</comment>
</data>
<data name="MainPageEnvironmentSetupGroup" xml:space="preserve">
<value>Set up development environment</value>
<comment>(Narrator reads this entry and should stay in sync with MainPage_EnvironmentSetup.Text ). Header text for a group of controls giving multiple choices to set up the environment/machine</comment>
Copy link
Contributor

@vineeththomasalex vineeththomasalex Apr 3, 2024

Choose a reason for hiding this comment

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

Nit

Suggested change
<comment>(Narrator reads this entry and should stay in sync with MainPage_EnvironmentSetup.Text ). Header text for a group of controls giving multiple choices to set up the environment/machine</comment>
<comment>(Narrator reads this entry and should stay in sync with MainPage_EnvironmentSetup.Text). Header text for a group of controls giving multiple choices to set up the environment/machine</comment>

@dhoehna dhoehna merged commit a9d28be into main Apr 3, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs-Second Pull request that needs another approval
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants