Reduced-motion guards, opt-in terminal screen-reader mode, tooltip upgrade

未关闭
#211 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 4 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
48/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
冷清
技术栈
css, typescript

调研方向

Start with styles.css around the cited statusPulse and reduced-motion sections, HelpDialog.tsx around keybind-pulse, and the Settings and terminal-creation entry points for xterm.js. Check how arena CSS applies motion guards and how terminal options are configured. Done means the requested animations respect reduced motion and a Settings toggle enables screen-reader mode; the tooltip work is explicitly stretch scope.

由索引模型根据 Issue 内容生成。

描述

enhancement ux

Problem

Infinite animations lack prefers-reduced-motion guards in the main stylesheet. @keyframes statusPulse drives .status-dot-pulse (1.9 s infinite — potentially on many task dots simultaneously) at styles.css:1413-1424; askcode-pulse (:2263); inline keybind-pulse (HelpDialog.tsx:529-535). styles.css has exactly one reduced-motion block, covering only .projects-collapser (:977-981). The arena CSS files all guard properly — the pattern exists; the main file doesn't use it.

Terminals are silent to screen readers. No screenReaderMode anywhere in src/ — xterm.js ships an off-by-default SR mode, and the app's primary content (agent output) is unreadable by assistive tech. It costs rendering performance, so opt-in via Settings is the right shape.

All 124 tooltips are native title= with no custom tooltip component: ~1 s hover delay, never shown on keyboard focus, unstyled. IconButton funnels through a title prop consistently (which at least provides accessible names), so a single upgrade point exists.

Proposed fix

  • One @media (prefers-reduced-motion: reduce) block disabling the pulse/appear/remove keyframe animations in styles.css.
  • Settings toggle wiring xterm screenReaderMode: true into terminal creation.
  • (Stretch) small custom tooltip shown on hover and :focus-visible; aria-label fallback prop on IconButton.

From a full design/UX audit (2026-07-07); adversarially verified. Line numbers as of b342bbd (v1.12.0).

主要语言
TypeScript
星标
1k
派生
144
平均合并
4 天 19 小时
30 天内合并 PR
28

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

johannesjo/parallel-code 的其他 Issue

查看 johannesjo/parallel-code 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。