3 references to ContrastRatio
Aspire.Dashboard.Playwright.Tests (3)
Integration\Playwright\AccessibilityTests.cs (3)
218
return
ContrastRatio
(colors.Foreground, colors.Background) >= WcagAaContrastMinimum;
235
.Select(state => (state.Name, state.Foreground, state.Background, Ratio:
ContrastRatio
(state.Foreground, state.Background)))
399
var ratio =
ContrastRatio
(foreground, background);