Breadcrumb is cut off at narrow widths and high zoom

未关闭 适合新手
#280 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
82/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
css, html

调研方向

从 scripts/build-html.js 中的面包屑标记及 html/styles/custom.css 中的相应样式开始,然后在 320 CSS 像素的视口中重现问题。调整页眉布局,使窄屏宽度下完整的面包屑保持可见且不重叠。在 320 CSS 像素下,Home 链接和面包屑的其余部分均可见即为完成。

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

描述

accessibility

Found during the manual visual check of core tasks 1 to 4 on 29 October 2026, recorded in admin/ACCESSIBILITY_CORE_FLOWS.md.

Where: the header of every site page, for example Chapter 05. The breadcrumb is nav.breadcrumb in scripts/build-html.js, styled in html/styles/custom.css.

What: the breadcrumb ("Home > Working with Issues") shares one row with the Wiki link and the search box. It is set to white-space: nowrap; overflow: hidden; text-overflow: ellipsis, so as the window narrows it is squeezed rather than wrapped. Measured widths of the breadcrumb, which needs 172 CSS pixels:

  • 640 pixels wide (200% zoom on a 1280 pixel window): 328 pixels, shown in full.
  • 480 pixels: 168 pixels, just cut.
  • 400 pixels: 88 pixels.
  • 320 pixels (400% zoom): 8 pixels; only the "H" of "Home" shows, and the rest of the link is hidden behind the Wiki button.

At 320 CSS pixels this loses information, which WCAG 2.2 success criterion 1.4.10 Reflow does not allow. There is no horizontal page scroll, so the page-level reflow check in the 28 October agent run did not catch it.

Workaround: the same Home link is in the sidebar as "Workshop Home", and the page title and heading name the current page.

Severity: medium for people who use high zoom or a narrow window; nothing is blocked.

Done when: at a 320 CSS pixel wide window the whole breadcrumb is visible, for example by letting the header row wrap, or moving the breadcrumb onto its own line below a breakpoint, with the Home link fully visible and not overlapped.

主要语言
HTML
星标
18
派生
10
平均合并
1 分钟
30 天内合并 PR
17

环境准备

从这里开始

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

Community-Access/git-going-with-github 的其他 Issue

查看 Community-Access/git-going-with-github 的全部 Issue

相似的 Issue

更多 Accessibility Issue

把新 issue 发到你的邮箱

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