Skip to content

Commit

Permalink
[ MenuBar ] In high contrast, the focus visual overlaps the button bo…
Browse files Browse the repository at this point in the history
…rder and is barely (or not at all) visible (#6730)

* date pickers

* adding time picker and flyout theming

* update background smoke for hc

* fixing focus and high contrast outline on menu bar item
  • Loading branch information
tashatitova authored Feb 17, 2022
1 parent 694079d commit 7a1246a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dev/MenuBar/MenuBarItem.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
<Setter Property="IsTabStop" Value="True"/>
<Setter Property="ExitDisplayModeOnAccessKeyInvoked" Value="False"/>
<Setter Property="UseSystemFocusVisuals" Value="True"/>
<Setter Property="FocusVisualMargin" Value="-3"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="local:MenuBarItem">
Expand Down Expand Up @@ -69,6 +70,8 @@

<Border x:Name="Background"
Background="{TemplateBinding Background}"
contract7Present:CornerRadius="{TemplateBinding CornerRadius}"
contract7NotPresent:CornerRadius="{ThemeResource ControlCornerRadius}"
BorderThickness="{TemplateBinding BorderThickness}"
BorderBrush="{TemplateBinding BorderBrush}"/>

Expand Down

0 comments on commit 7a1246a

Please sign in to comment.