From de84b2554a9556e8d67497d78cc825e0d6001556 Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Tue, 6 Oct 2026 19:32:52 -0400 Subject: [PATCH] test(ui): the contrast guard resolves white, which the action hover tokens mix in (#5096) Co-Authored-By: Claude Opus 5.5 --- tests/test_contrast.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_contrast.py b/tests/test_contrast.py index d6955b1..cba41ac 100644 --- a/tests/test_contrast.py +++ b/tests/test_contrast.py @@ -52,6 +52,8 @@ def color(expr: str) -> tuple: return (0, 0, 0, 0.0) if expr == "black": return (0, 0, 0, 1.0) + if expr == "white": + return (255, 255, 255, 1.0) if expr.startswith("#"): h = expr[1:] if len(expr) == 7 else "".join(c * 2 for c in expr[1:]) return (int(h[0:2], 16), int(h[2:4], 16), int(h[4:6], 16), 1.0)