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 像素的 viewport 中重現問題。調整頁首版面配置,讓窄螢幕寬度下完整的麵包屑保持可見且不重疊。在 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 摘要。