Skip to content

Commit a42dad4

Browse files
Merge branch 'master' into inAppNotification.accessibility
2 parents cb8ecda + 74b3dd7 commit a42dad4

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

Microsoft.Toolkit.Uwp.UI.Controls/InAppNotification/Styles/MSEdgeNotificationStyle.xaml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,18 @@
3131
</ResourceDictionary>
3232
</ResourceDictionary.ThemeDictionaries>
3333

34+
<x:Double x:Key="SystemControlMSEdgeNotificationDismissButtonSize">40</x:Double>
35+
<Thickness x:Key="SystemControlMSEdgeNotificationDismissButtonMargin">24,0,0,0</Thickness>
36+
<x:Double x:Key="SystemControlMSEdgeNotificationDismissButtonTranslate">18</x:Double>
37+
<VerticalAlignment x:Key="SystemControlMSEdgeNotificationDismissButtonVerticalAlignment">Center</VerticalAlignment>
38+
<Thickness x:Key="SystemControlMSEdgeNotificationButtonBorderThickness">2</Thickness>
39+
3440
<Style x:Key="DismissTextBlockButtonStyle"
3541
TargetType="ButtonBase">
3642
<Setter Property="Background" Value="{ThemeResource HyperlinkButtonBackground}" />
3743
<Setter Property="Foreground" Value="{ThemeResource ApplicationForegroundThemeBrush}" />
38-
<Setter Property="Width" Value="40" />
39-
<Setter Property="Height" Value="40" />
44+
<Setter Property="Width" Value="{StaticResource SystemControlMSEdgeNotificationDismissButtonSize}" />
45+
<Setter Property="Height" Value="{StaticResource SystemControlMSEdgeNotificationDismissButtonSize}" />
4046
<Setter Property="UseSystemFocusVisuals" Value="True" />
4147
<Setter Property="HighContrastAdjustment" Value="None" />
4248
<Setter Property="Template">
@@ -46,8 +52,8 @@
4652
Margin="{TemplateBinding Padding}"
4753
Background="{TemplateBinding Background}">
4854
<Border x:Name="TextBorder"
49-
BorderBrush="{ThemeResource SystemControlMSEdgeNotificationButtonBorderBrush}"
50-
BorderThickness="2">
55+
BorderThickness="{StaticResource SystemControlMSEdgeNotificationButtonBorderThickness}"
56+
BorderBrush="{ThemeResource SystemControlMSEdgeNotificationButtonBorderBrush}">
5157
<ContentPresenter x:Name="Text"
5258
AutomationProperties.AccessibilityView="Raw"
5359
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
@@ -144,11 +150,12 @@
144150

145151
<Button x:Name="PART_DismissButton"
146152
Grid.Column="1"
147-
Margin="24,0,0,0"
153+
Margin="{StaticResource SystemControlMSEdgeNotificationDismissButtonMargin}"
148154
AutomationProperties.Name="Dismiss"
149155
Content="&#xE894;"
150156
FontFamily="Segoe MDL2 Assets"
151157
FontSize="16"
158+
VerticalAlignment="{StaticResource SystemControlMSEdgeNotificationDismissButtonVerticalAlignment}"
152159
Style="{StaticResource DismissTextBlockButtonStyle}">
153160
<Button.RenderTransform>
154161
<TranslateTransform x:Name="DismissButtonTransform" X="18" />

0 commit comments

Comments
 (0)