fix(index): a11y 对比度 · reveal 兜底 · 去脚手架编号 · 英文文案清理 - #31
Merged
Conversation
围绕首页做一轮 impeccable 设计打磨(保留宣言气质): - a11y/对比度:新增 --ink-label(5.3:1)与 --accent-ink(4.7:1)令牌, 修复 kicker、ritual-num、FAQ 展开态、STEP 标签未达 WCAG AA 的问题; 暗场 closer kicker 改为继承浅色(2.45:1 → 5.57:1); 补全局可见焦点环(accent 2px)并移除两处 outline:none。 - 健壮性:reveal 动画不再门控内容可见性——<html> 预绘制加 .js, 新增 html:not(.js) 兜底块,4 个 IntersectionObserver 加不支持兜底; JS 禁用/失败、爬虫、老浏览器不再空屏。 - 反 AI 脚手架:去掉 Definition 三支柱与 Rituals 的非序列编号, 仅保留 workflow 真实有序的 01–06。 - 文案:hero 字号上限 144→112px;index 页英文 em-dash 全部改为 冒号/逗号/句号/括号(可见文案 + JSON-LD 结构化数据),中文破折号保留; 宣言点睛句保留。 - 同步重建 docs/en/ 英文镜像;新增 PRODUCT.md 项目设计上下文。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Owner
Author
Blocker / 必须修正
建议
结论:❌ 暂不可合并(存在 blocker) |
review blocker:此前 .js 由 head 普通脚本无条件添加,但 reveal 逻辑在底部 type="module"。module 不支持 / 脚本 404 / `three` import 失败时,.js 已存在 却没有任何代码揭示内容,html:not(.js) 兜底失效 → workflow/ritual/closer 空屏。 - 将 .js 的添加从 head 移入 githire-scroll.js,放在 stage 初始化(try/catch) 之后、reveal 逻辑之前。module 不跑则 .js 永不添加 → 兜底强制可见(fail-open)。 - 更新兜底块注释说明新机制;重建 en 镜像同步移除 head 注入。 - 新增 scripts/check-reveal-failsafe.mjs + npm run check:failsafe: jsdom 模拟脚本不执行,断言 <html> 无 .js、兜底覆盖全部隐藏选择器、 .js 仅由 reveal 脚本在 stage 之后添加。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Owner
Author
|
已处理 review 的 blocker 与建议(commit 27df7a5 + 合并最新 main)。 Blocker — module 失败时空屏:完全成立,已修。 修法(reviewer 的第一个建议:只在 reveal 脚本接管后启用隐藏态):
最小回归检查:已补。 BEHIND: 已合并最新 劳烦再 review 一轮 🙏 |
Owner
Author
建议
结论:✅ 可以合并 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
首页一轮 impeccable 设计打磨,保留宣言气质(已据此校准 PRODUCT.md)。起点是
/impeccable critique docs/index.html(34/40)。改了什么
可访问性 / 对比度(主线)
--ink-label(#67645B,5.3:1)、--accent-ink(#B54A27,4.7:1)ritual-num、FAQ 展开态 summary、STEP标签accent2px),移除两处outline:none健壮性(reveal 不再门控可见性)
<html>预绘制加.js;新增html:not(.js)兜底块;4 个IntersectionObserver加不支持兜底反 AI 脚手架
01–06文案
144px → 112px——保留(正规标点,非英文 em-dash tell)其它
docs/en/英文镜像PRODUCT.md项目设计上下文;.impeccable/加入.gitignore验证
githire-scroll.js/i18n.js/build-en.mjs语法 OKbuild:en重建成功,英文镜像非注释 em-dash 清零single-font双语 committed 误报、em-dash中文破折号 CJK 误报、numbered-markers仅 workflow 真实序列)注意
🤖 Generated with Claude Code