From fe73f40d03397bb6c8ae188363527e9500f0607a Mon Sep 17 00:00:00 2001 From: skl Date: Thu, 8 Oct 2026 03:26:46 +0200 Subject: [PATCH] UI accessibility: WCAG AA contrast, one main landmark, a heading per view axe-core (WCAG 2.1 A/AA and best practice) on every view at 1440 and 390 px (20 audits) found 6 rules broken; all 20 now report 0 violations. - Contrast: 12 failing colour pairs, as low as 2.3:1. Green text #10a37f -> #11ad87, green buttons with white text -> #0d8467 (dark text on green and decorative greens keep #10a37f), grey hints #666/#777 -> #999, the blue Save button -> #006fef. Each is the smallest change that reaches 4.5:1. - Landmarks: all views sit in one
(the chat column, which was the only
, is a named section); the two sidebars have distinct names. - The ComfyUI and LoRA views had no h1: their titles are h1 now, same look. - The prompt template select had only a title; it has an aria-label. - The LoRA card, dimmed when the workflow has no LoRA node, is aria-disabled too (its inputs were already disabled). - The "Ollama is not running" banner was inserted before (its ".status-dots" anchor no longer exists), so it rendered in Times New Roman outside . It is the first element of now, a named section. Co-Authored-By: Claude Opus 5.5 --- app/frontend/index.html | 68 ++++++++++++++++++++++------------------- 1 file changed, 37 insertions(+), 31 deletions(-) diff --git a/app/frontend/index.html b/app/frontend/index.html index 1f82250..33297fb 100644 --- a/app/frontend/index.html +++ b/app/frontend/index.html @@ -54,7 +54,7 @@ width: 40px; height: 40px; border-radius: 8px; - background: #10a37f; + background: #0d8467; border: none; color: white; cursor: pointer; @@ -277,7 +277,7 @@ padding: 8px 12px; border: none; border-radius: 8px; - background: #4a9eff; + background: #006fef; color: white; font-size: 12px; cursor: pointer; @@ -421,7 +421,7 @@ .document-context-title { font-weight: 600; - color: #10a37f; + color: #11ad87; margin-bottom: 4px; } @@ -526,7 +526,7 @@ font-size: 13px; font-weight: 600; margin-bottom: 12px; - color: #10a37f; + color: #11ad87; text-transform: uppercase; letter-spacing: 0.5px; } @@ -558,13 +558,13 @@ .upload-text { font-size: 12px; - color: #10a37f; + color: #11ad87; margin-bottom: 8px; } .upload-hint { font-size: 11px; - color: #666; + color: #999; } .file-input { @@ -607,7 +607,7 @@ .doc-list-item-btn { background: none; border: none; - color: #10a37f; + color: #11ad87; cursor: pointer; font-size: 12px; padding: 4px 8px; @@ -643,7 +643,7 @@ .prompt-list-item-name { font-weight: 600; - color: #10a37f; + color: #11ad87; margin-bottom: 4px; } @@ -659,7 +659,7 @@ align-items: center; justify-content: center; height: 100%; - color: #666; + color: #999; text-align: center; } @@ -795,7 +795,7 @@ } .nav-item:hover { background: #222; color: #ececec; } - .nav-item.active { background: #1f2f2b; border-color: #10a37f; color: #10a37f; } + .nav-item.active { background: #1f2f2b; border-color: #10a37f; color: #11ad87; } .nav-item-icon { font-size: 18px; line-height: 1; } .nav-status { @@ -814,7 +814,7 @@ align-items: center; gap: 5px; font-size: 9px; - color: #777; + color: #999; width: 62px; } @@ -828,6 +828,7 @@ .status-dot.online { background: #10a37f; box-shadow: 0 0 6px #10a37f88; } .status-dot.offline { background: #ff6b6b; } + .views { flex: 1; min-width: 0; display: flex; } .view { display: none; flex: 1; min-width: 0; } .view.active { display: flex; } @@ -849,7 +850,7 @@ flex-wrap: wrap; } - .studio-title { font-size: 18px; font-weight: 600; } + .studio-title { font-size: 18px; font-weight: 600; margin: 0; } .studio-body { flex: 1; @@ -902,13 +903,13 @@ .field select:focus, .field textarea:focus { outline: none; border-color: #10a37f; } .field textarea { min-height: 72px; resize: vertical; } - .field-hint { font-size: 11px; color: #777; } + .field-hint { font-size: 11px; color: #999; } .btn { padding: 9px 16px; border: none; border-radius: 8px; - background: #10a37f; + background: #0d8467; color: #fff; font-size: 13px; font-weight: 600; @@ -948,7 +949,7 @@ cursor: pointer; } .tab:hover { background: #222; color: #ececec; } - .tab.active { background: #10a37f; border-color: #10a37f; color: #fff; font-weight: 600; } + .tab.active { background: #0d8467; border-color: #10a37f; color: #fff; font-weight: 600; } .panel { display: none; } .panel.active { display: block; } @@ -988,7 +989,7 @@ } .badge.queued { background: #3a3520; color: #e0c070; } .badge.running { background: #1f2f3a; color: #4a9eff; } - .badge.completed { background: #1f2f2b; color: #10a37f; } + .badge.completed { background: #1f2f2b; color: #11ad87; } .badge.failed { background: #3a2020; color: #ff6b6b; } .badge.cancelled { background: #2a2a2a; color: #999; } .badge.not_started { background: #2a2a2a; color: #999; } @@ -1045,7 +1046,7 @@ .item-row.selected { border-color: #10a37f; background: #131c19; } .item-main { min-width: 0; flex: 1; } .item-name { font-size: 13px; font-weight: 600; margin-bottom: 3px; } - .item-meta { font-size: 11px; color: #777; } + .item-meta { font-size: 11px; color: #999; } .item-actions { display: flex; gap: 6px; flex-shrink: 0; } .dataset-grid { @@ -1091,7 +1092,7 @@ } .tile-name { font-size: 10px; - color: #777; + color: #999; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; @@ -1100,7 +1101,7 @@ .empty-state { padding: 36px 20px; text-align: center; - color: #666; + color: #999; font-size: 13px; } @@ -1153,6 +1154,7 @@ +
@@ -1194,7 +1196,7 @@

Workspace

-