Skip to content

Commit

Permalink
Merge pull request #200 from nick5616/accessibilityFixes1
Browse files Browse the repository at this point in the history
Accessibility Fixes
  • Loading branch information
Nicolas Belovoskey authored Apr 4, 2022
2 parents a401e14 + 464e4bd commit c3a09af
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/App/ConnectionPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@
<StackPanel>
<TextBlock TextWrapping="Wrap" x:Uid="ExitText" Style="{ThemeResource FlyoutPickerTitleTextBlockStyle}"/>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
<Button x:Name="Close" Padding="5" Margin="5" Click="Close_Click">
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
<SymbolIcon Symbol="Back"/>
<TextBlock Padding="5,0" TextWrapping="Wrap" x:Uid="Close"/>
</StackPanel>
</Button>
<Button x:Name="ConfirmExit" Padding="5" Margin="5" Click="ConfirmExit_Click">
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
<FontIcon FontFamily="{StaticResource SymbolThemeFontFamily}" Glyph="&#xE711;"/>
Expand Down
4 changes: 4 additions & 0 deletions src/App/ConnectionPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,10 @@ private void ConfirmExit_Click(object sender, RoutedEventArgs e)
private void Exit_Click(object sender, RoutedEventArgs e)
{
AutomationProperties.SetName(ConfirmExit, "ConfirmExit");
}
private void Close_Click(object sender, RoutedEventArgs e)
{
ExitFlyout.Hide();
}

private async void ValidateXMLButton_Click(object sender, RoutedEventArgs e)
Expand Down
2 changes: 1 addition & 1 deletion src/App/MainPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<TextBlock x:Name="Header" x:Uid="FactoryOrchestrator" Text="" TextWrapping="Wrap" VerticalAlignment="Center" HorizontalAlignment="Left" Grid.Column="0" FontWeight="Bold" Style="{StaticResource TitleTextBlockStyle}"/>
<TextBlock x:Name="Header" x:Uid="FactoryOrchestrator" Text="" TextWrapping="Wrap" VerticalAlignment="Center" HorizontalAlignment="Left" Grid.Column="0" FontWeight="Bold" Style="{StaticResource TitleTextBlockStyle}" AutomationProperties.HeadingLevel="Level1"/>
<StackPanel x:Name="IndicatorPanel" Orientation="Horizontal" Background="{ThemeResource ControlAltFillColorTransparent}" HorizontalAlignment="Right" CornerRadius="5" Padding="1" Grid.Row="0" Grid.Column="1">
<StackPanel x:Name="ButtonPanel" Orientation="Horizontal" HorizontalAlignment="Right">
<Button x:Name="SystemButton" Background="{ThemeResource ControlFillColorSecondary}" x:Uid="SystemButton" Visibility="Visible" Padding="5" Margin="0">
Expand Down
3 changes: 3 additions & 0 deletions src/App/Resources/en-US/Resources.resw
Original file line number Diff line number Diff line change
Expand Up @@ -849,4 +849,7 @@ On retry</value>
<data name="SystemHeader.Text" xml:space="preserve">
<value>System Information</value>
</data>
<data name="Close.Text" xml:space="preserve">
<value>Close</value>
</data>
</root>

0 comments on commit c3a09af

Please sign in to comment.