We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ea8925 commit 7d20d6aCopy full SHA for 7d20d6a
components/ColorAnalyzer/samples/AccentAnalyzerSample.xaml
@@ -76,6 +76,7 @@
76
</Border.Background>
77
<TextBlock Text="Base">
78
<TextBlock.Foreground>
79
+ <!-- ConstrastHelper used to auto-adjust text Foreground against the dynamic background per WCAG -->
80
<SolidColorBrush helpers:ContrastHelper.MinRatio="5"
81
helpers:ContrastHelper.Opponent="{x:Bind AccentAnalyzer.BaseColor, Mode=OneWay}"
82
Color="{x:Bind AccentAnalyzer.PrimaryAccentColor, Mode=OneWay}" />
0 commit comments