Repository navigation
feat(docs): UI 调研修复——品牌统一、可访问性与收尾打磨 - #51
Merged
Merged
Conversation
覆盖 fumadocs 的 --color-fd-primary(亮 teal-700 / 暗 teal-400,实测满足 WCAG AA;teal-600 亮色仅 3.4:1 不达标故加深一档),全局 focus ring 改为 跟随主题 primary 变量,不再硬编码色值。
- body 开头新增视觉隐藏、键盘焦点时出现的「跳到主要内容」,slot 外包 div#main 作落点(fumadocs 布局内部 main 无法加 id) - 新增 teal→cyan 渐变的 SVG favicon,声明改为 SVG 优先 + PNG 兜底 + apple-touch-icon,解决 PNG 位图小尺寸渲染不可控的问题 - 补亮/暗两条 theme-color meta
- 指示条位置改由 ResizeObserver 驱动重算,覆盖窗口缩放与字体加载 - 自动轮播尊重 prefers-reduced-motion,悬停暂停 - tab 组补全 tablist/tab/tabpanel 语义与 aria-selected/aria-controls, 指示条等纯装饰元素加 aria-hidden
- Rocket→Compass、Sparkles→Palette,去掉最模板化的两个图标 - 版权年份与贡献者计数加 tabular-nums;contributors 补可见的计数行 - 404:装饰大字 aria-hidden,新增「常用页面」快捷链接组 - theme-card 外链头像补 loading="lazy"
- /privacy、/terms 两页真实内容(非占位文),带 H2 小节结构 - footer 补两条法务链接;站内宣传 AI 评论审核等涉及用户数据的功能, 需要基础法务页面兜底
SafeDep Report SummaryNo dependency changes detected. Nothing to scan. This report is generated by SafeDep GitHub App |
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.



背景
对站点做了两轮 UI 调研(代码审计 + 本地截图视觉验收),按优先级修掉 13 项问题。仅改动 UI 层,不涉及文档内容与构建配置。
改动
品牌统一
teal-700/ 暗teal-400,实测满足 WCAG AA;teal-600 亮色仅 3.4:1 故加深一档)--color-fd-primary,不再硬编码色值layout(base.astro)
div#main作落点(fumadocs 布局内部<main>无法加 id)theme-colormeta首页预览轮播(preview-images.tsx)
prefers-reduced-motion、悬停暂停tablist/tab/tabpanel语义与aria-selected/aria-controls,装饰元素aria-hidden收尾打磨
Rocket→Compass、Sparkles→Palettetabular-nums,contributors 补可见计数行aria-hidden,新增「常用页面」快捷链接组loading="lazy"法务页面
/privacy、/terms(真实内容、H2 小节结构),footer 补两条链接——站内宣传 AI 评论审核等涉及用户数据的功能,需要基础法务页面兜底验证
astro check0 错误、eslint干净已知存量问题(本次未处理)
代码块
<figure>存在重复tabindex="0"/-1",触发 dev 环境 React SSR 警告;已用 git stash 在基线复现确认为 fumadocs 上游行为,不影响生产用户。