Skip to content

Keep sidebar footer controls at a 24px pointer target - #395

Merged
BunsDev merged 1 commit into
mainfrom
fix/target-size
Sep 28, 2026
Merged

BunsDev merged 1 commit into
mainfrom
fix/target-size

Conversation

@BunsDev

@BunsDev BunsDev commented Sep 28, 2026

Copy link
Copy Markdown
Member

What changed

New test. A rendered e2e test measures every pointer target against WCAG 2.5.8 at two window sizes: the default and the 480×520 minimum. A target smaller than 24px passes only if a 24px circle centred on it touches no other target.

  • Links inside a sentence are exempt.
  • A checkbox is measured together with its label.
  • Controls inside a closed disclosure are skipped. The footer disclosures are opened first, so their contents are measured.
  • The screen viewer and find bar are open during the check.

Fixes the test found: the controls in the sidebar footer were packed too tightly.

  • "Keyboard shortcuts": a 17px-tall strip right against "User settings". Both disclosure summaries now take a 24px line.
  • "Show archived chats": a 15px label directly beneath them. It is now a 24px row.

Verification

  • playwright test: 61 passed.
  • With the old CSS, the new test fails with Show archived chats: 137x15 and Keyboard shortcuts: 123x17.
  • vitest run src/coven: 271 passed.
  • typecheck is clean. biome reports only the existing warning in chat-app.css.

🤖 Generated with Claude Code

A new rendered test measures every pointer target at the default and the
minimum window size against WCAG 2.5.8: a target under 24px passes only if
a 24px circle on it touches no other target. Inline links are exempt, a
checkbox is measured with its label, and folded disclosures are opened.

It found the footer's stacked disclosures too tight: "Keyboard shortcuts"
was a 17px strip against "User settings", and "Show archived chats" a 15px
label under it. The summaries take a 24px line and the label a 24px row.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings September 28, 2026 19:21

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🔵 Needs a closer look

The end-to-end coverage has unresolved threshold, geometry, and compact-viewport issues.

Review effort: Lite
Findings: None

What changed in this PR

Improves sidebar footer pointer-target sizing for WCAG 2.5.8 and adds responsive end-to-end coverage.

Changes:

  • Sets footer controls to 24px target sizes.
  • Adds pointer-target validation at desktop and minimum viewport sizes.
File Description
src/​coven/​chat-app.css Enlarges footer control hit areas.
e2e/​app.tauri-mock.spec.ts Adds WCAG pointer-target validation.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@BunsDev
BunsDev merged commit aec1bd9 into main Sep 28, 2026
11 checks passed
@BunsDev
BunsDev deleted the fix/target-size branch September 28, 2026 19:33
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.

2 participants