Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit c0828d8

Browse files
Fix to allow diabled octicon buttons
Co-Authored-By: Steven Kirk <[email protected]>
1 parent 8a53fe3 commit c0828d8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/GitHub.UI/Controls/Buttons/OcticonButton.xaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
<DoubleAnimationUsingKeyFrames Storyboard.TargetName="DisabledVisualElement" Storyboard.TargetProperty="Opacity">
3737
<SplineDoubleKeyFrame KeyTime="0" Value="0.5"/>
3838
</DoubleAnimationUsingKeyFrames>
39-
<DoubleAnimationUsingKeyFrames Storyboard.TargetName="contentPresenter" Storyboard.TargetProperty="(UIElement.Opacity)">
39+
<DoubleAnimationUsingKeyFrames Storyboard.TargetName="Path" Storyboard.TargetProperty="(UIElement.Opacity)">
4040
<EasingDoubleKeyFrame KeyTime="0" Value="0.5"/>
4141
</DoubleAnimationUsingKeyFrames>
4242
</Storyboard>
@@ -81,7 +81,8 @@
8181
<Viewbox xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" Width="16" Height="16">
8282
<Border BorderBrush="Transparent" BorderThickness="1">
8383

84-
<ui:OcticonPath Height="16"
84+
<ui:OcticonPath x:Name="Path"
85+
Height="16"
8586
Fill="{TemplateBinding Foreground}"
8687
Icon="{TemplateBinding Icon}"
8788
SnapsToDevicePixels="True"/>

0 commit comments

Comments
 (0)