chore(backlog): 记录 g203 完成
This commit is contained in:
@@ -2213,6 +2213,15 @@
|
||||
"acceptance": "方案(择一或组合):surface-2/3/inset 改为相对 var(--ua-color-surface) 混色(需重验所有消费点与视觉基线);或 option/menu-item/tab 的 :active 改用 surface-3 或 tint-accent 保持可见;option-selected/tab-active 的按下态保底不丢选中语义;npm run check 全绿 + QA 数值复核按下对比 ≥1.05。",
|
||||
"status": "done",
|
||||
"notes": "QA R2 证据:亮暗各测;附带收尾项——三参 bg 变体 4 处(ui.css 804/842/1056/1490,accent 8~10% 混 bg)与 tint-accent 视觉等价可并入;menu-item 等 transition 的字面 ease 改 var(--ua-ease)(O3 风格债);落地:option/menu-item/tab 按下态改 tint-accent(对比 1.154/1.189 ≥1.05,选中项按下不丢语义);tag-info/tag.is-checked/step-done/toast-info 四处 accent 混 bg 并入 tint-accent;transition/animation 字面 ease 全量换令牌(ease-in-out 保留:无限循环动画无对应令牌,改曲线属视觉变更超范围)"
|
||||
},
|
||||
{
|
||||
"id": "g203",
|
||||
"title": "文档站亮暗主题切换,demo 支持 ?theme= 参数",
|
||||
"motivation": "文档站 index.html 只有系统级暗色(prefers-color-scheme),无法手动切换;人工审阅 qa/stable 时想对照暗色观感只能改系统设置。demo 页已有 data-theme 全套暗色,但文档站 iframe 引用 demo.html 时无法联动主题。",
|
||||
"acceptance": "1) 文档站页头新增主题切换按钮:亮/暗/跟随系统三态持久到 localStorage,CSS 用 :root[data-theme=dark] 显式块 + 媒体查询 :not([data-theme=light]) 兜底;2) demo 页初始化优先读 URL 参数 ?theme=dark|light(文档站 iframe 联动入口),其次 localStorage,最后系统;3) 切换按钮时所有 iframe.demo 带参重载实现联动;4) npm run docs 重新生成产物,npm run check 全绿。",
|
||||
"domain": "tooling",
|
||||
"status": "done",
|
||||
"notes": "落地:docs 模板加显式暗色块(:root[data-theme=dark] + 媒体查询 :not([data-theme=light]))与页头切换按钮(localStorage 持久);demo 主题初始化优先读 ?theme= 参数;切换时 iframe.demo 带参重载联动。产物(apps/docs/* 与 demo dist)不入库由 npm run docs 本地生成;apps/docs/demo.html 须先 npm run demo 再 npm run docs,顺序反了拷到旧产物。"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user