Skip to content

Commit 7d20d6a

Browse files
authored
Update components/ColorAnalyzer/samples/AccentAnalyzerSample.xaml
1 parent 1ea8925 commit 7d20d6a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

components/ColorAnalyzer/samples/AccentAnalyzerSample.xaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@
7676
</Border.Background>
7777
<TextBlock Text="Base">
7878
<TextBlock.Foreground>
79+
<!-- ConstrastHelper used to auto-adjust text Foreground against the dynamic background per WCAG -->
7980
<SolidColorBrush helpers:ContrastHelper.MinRatio="5"
8081
helpers:ContrastHelper.Opponent="{x:Bind AccentAnalyzer.BaseColor, Mode=OneWay}"
8182
Color="{x:Bind AccentAnalyzer.PrimaryAccentColor, Mode=OneWay}" />

0 commit comments

Comments
 (0)