mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
fix(a11y): WCAG AA contrast retune for the Otter Orange palette (#567)
Fixes #557. Vivid fill, ink label: brand #E07832 stays on fills while primary-foreground flips to #1A1814 (5.83:1); new theme-aware ink tokens carry orange, destructive, and success text roles; opacity-modified text purged; landing, demo, and the docs fund button retuned. Guarded by a CSS-parsing unit contrast test, rebuilt axe baselines with zero contrast entries, a new landing axe smoke, and fully regenerated darwin visual baselines.
This commit is contained in:
@@ -1490,7 +1490,7 @@ test.describe("FILE: csv-excel", () => {
|
||||
const issues = instrument(page);
|
||||
await setupTool(page, "csv-excel", CSV);
|
||||
// Process but check for inline errors too (the csv-excel tool surfaces
|
||||
// errors in a <p class="text-red-500"> that waitForResult doesn't catch).
|
||||
// errors in a <p class="text-destructive-ink"> that waitForResult doesn't catch).
|
||||
const submit = page.getByTestId("csv-excel-submit");
|
||||
await submit.first().click();
|
||||
// Wait up to 60s for either download button or an inline error
|
||||
@@ -1498,7 +1498,7 @@ test.describe("FILE: csv-excel", () => {
|
||||
let gotResult = false;
|
||||
let inlineError = "";
|
||||
while (Date.now() < deadline) {
|
||||
const errEl = page.locator(".text-red-500").first();
|
||||
const errEl = page.locator(".text-destructive-ink, .text-red-500").first();
|
||||
if (await errEl.isVisible().catch(() => false)) {
|
||||
inlineError = await errEl.innerText().catch(() => "unknown error");
|
||||
gotResult = true;
|
||||
|
||||
Reference in New Issue
Block a user