Skip to content

UI accessibility: WCAG AA contrast, one main landmark, a heading per view - #2

Merged
sklsp merged 1 commit into
mainfrom
fix/a11y
Oct 8, 2026
Merged

sklsp merged 1 commit into
mainfrom
fix/a11y

Conversation

@sklsp

@sklsp sklsp commented Oct 8, 2026

Copy link
Copy Markdown
Owner

I ran axe-core (WCAG 2.1 A/AA plus best practice) on every view of the web UI (Home, Chat, Docs, ComfyUI, LoRA and its Projects, Dataset, Training and Library tabs) at 1440 px and 390 px, 20 audits in all. It found 6 broken rules. After this PR, all 20 report 0 violations.

Contrast (serious): 12 failing colour pairs, the worst at 2.3:1. Each fix is the smallest lightness change, same hue, that reaches 4.5:1 everywhere the colour is used:

Where Before After
green text on dark #10a37f #11ad87
green buttons with white text #10a37f #0d8467
grey hints and metadata #666 / #777 #999
blue Save button #4a9eff #006fef

Dark text on green (the active chat, the user's bubbles) and the decorative greens keep #10a37f. They already passed, at 6.7:1.

Other fixes:

  • Landmarks: all views now sit in one <main>. The chat column, which was the only <main>, becomes a named section. The two sidebars get distinct names.
  • Headings: the ComfyUI and LoRA views had no h1. Their titles are h1 now, with the same look.
  • Labels: the prompt-template select had only a title; it now has an aria-label.
  • Disabled state: the LoRA card, dimmed when the workflow has no LoRA node, is now aria-disabled too. Its inputs were already disabled.
  • Bug: the "Ollama is not running" banner was inserted before <head>, because its .status-dots anchor no longer exists. It rendered outside <body> in Times New Roman. It's now the first element of <body>, a named section.

Before-and-after screenshots show the same layout, with the active view at the same position and size. The visible changes are the slightly deeper green and blue buttons and more readable grey hints.

🤖 Generated with Claude Code

…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 <main> (the chat column, which was the only
  <main>, 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 <head> (its
  ".status-dots" anchor no longer exists), so it rendered in Times New Roman
  outside <body>. It is the first element of <body> now, a named section.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sklsp
sklsp marked this pull request as ready for review October 8, 2026 09:59
@sklsp
sklsp merged commit d738870 into main Oct 8, 2026
1 check passed
@sklsp
sklsp deleted the fix/a11y branch October 8, 2026 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant