Skip to content

Commit

Permalink
Fix focus visual and a11y
Browse files Browse the repository at this point in the history
  • Loading branch information
niels9001 committed Oct 3, 2023
1 parent 15df96e commit 9432547
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
9 changes: 7 additions & 2 deletions src/modules/launcher/PowerLauncher/LauncherControl.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@
<Setter.Value>
<ControlTemplate TargetType="{x:Type TextBox}">
<Grid>
<TextBlock VerticalAlignment="Center" Margin="6,0,0,0" FontSize="16" Text="{TemplateBinding Tag}">
<TextBlock
Margin="6,0,0,0"
VerticalAlignment="Center"
FontSize="16"
Text="{TemplateBinding Tag}">
<TextBlock.Style>
<Style TargetType="{x:Type TextBlock}">
<Setter Property="Foreground" Value="Transparent" />
Expand Down Expand Up @@ -64,7 +68,7 @@
</ScrollViewer>
</Border>
</Grid>

</ControlTemplate>
</Setter.Value>
</Setter>
Expand Down Expand Up @@ -113,6 +117,7 @@
FontSize="18"
Foreground="{DynamicResource TextPlaceholderColorBrush}" />
<ui:SymbolIcon
AutomationProperties.Name="{x:Static p:Resources.SearchIcon}"
FontSize="18"
Foreground="{DynamicResource TextPlaceholderColorBrush}"
Symbol="Search12" />
Expand Down
5 changes: 1 addition & 4 deletions src/modules/launcher/PowerLauncher/ResultList.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,14 @@
<Rectangle
Margin="2"
SnapsToDevicePixels="true"
Stroke="Green"
Stroke="{DynamicResource FocusStrokeColorOuterBrush}"
StrokeDashArray="1 2"
StrokeThickness="1" />
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>




<Style
x:Key="CollapsableTextblock"
BasedOn="{StaticResource CaptionTextBlockStyle}"
Expand Down

0 comments on commit 9432547

Please sign in to comment.