Answer stability round 1: 1 🔴, 6 🟡 (0 misread); hide the theme switch after its base rule, hide inert nav toggles, test the rendered result

This commit is contained in:
2026-10-31 01:32:26 +01:00
parent ac52abd330
commit a190166421
8 changed files with 82 additions and 34 deletions
-5
View File
@@ -36,8 +36,3 @@ for (const theme of ["l", "d"]) {
assert.ok(contrast(token(`${theme}-on-accent`), token(`${theme}-accent`)) >= 4.5);
});
}
test("the primary button and the current page button use --on-accent", () => {
assert.match(css, /\.btn-primary\s*\{[^}]*color:\s*var\(--on-accent\)/);
assert.match(css, /\.page-btn\[aria-current="page"\]\s*\{[^}]*color:\s*var\(--on-accent\)/);
});