a11y: "Other Formats", "Other Links" and "Code Links" in the TOC sidebar are too close together for WCAG 2.5.8
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 2/5
- 預估耗時
- 1-3 小時
- 新手友好度
- 79/100
- Issue 類型
- 缺陷
- 描述清晰度
- 描述清楚
- 活躍度
- 活躍
- 技術堆疊
- bootstrap, sass
研究方向
從 src/resources/formats/html/bootstrap/_bootstrap-rules.scss 第 1385–1395 行的共用連結規則開始,接著將它與 src/resources/formats/html/bootstrap/dist/scss/_nav.scss 中 Bootstrap 的 nav-link 規則進行比較。使用提供的 Quarto 範例或 axe-core 檢查側邊欄連結呈現後的尺寸和間距。完成標準是:Other Formats、Other Links 和 Code Links 目標符合 WCAG 2.5.8 的尺寸或間距標準,且不影響相關側邊欄群組。
由索引模型根據 Issue 內容生成。
描述
I have:
- searched the issue tracker for similar issues
- installed the latest version of Quarto CLI
- formatted my issue following the Bug Reports guide
Bug description
The links in the "Other Formats", "Other Links" and "Code Links" lists of the TOC sidebar overlap each other.
Each <a> is 24.8px tall, but consecutive links are only 20.4px apart.
axe-core reports target-size (WCAG 2.2 AA, SC 2.5.8) on each list.
The TOC links in the same sidebar pass: 25.5px tall, 25.5px apart.
The shared rule gives the inline <a> padding-top/padding-bottom: 0.2rem with line-height: 1.1rem.
Vertical padding on an inline element does not push the next line down, so the clickable boxes overlap:
The TOC links are not affected because they have the nav-link class, which Bootstrap makes display: block, so their padding does push the next link down:
The same rule also covers .toc-actions and .quarto-alternate-notebooks, which I did not measure.
Related:
- #15096, the same kind of problem in the website sidebar.
- #15389, these three groups are hidden on narrow screens. A fix there may move them.
Steps to reproduce
---
title: Links
toc: true
format:
html:
other-links:
- text: Example one
href: https://example.org/one
- text: Example two
href: https://example.org/two
code-links:
- text: Code one
href: https://example.org/code1
icon: file-code
- text: Code two
href: https://example.org/code2
icon: file-code
typst: default
docx: default
---
## First
Text.
## Second
Text.
Open the HTML at 1400px wide, then run getBoundingClientRect() on the sidebar links, or run axe-core with the wcag22aa tag.
Actual behavior
| Links | display |
Height | Distance between tops |
|---|---|---|---|
| TOC | block | 25.5px | 25.5px |
| Other Formats | inline | 24.8px | 20.4px |
| Other Links | inline | 24.8px | 20.4px |
| Code Links | inline | 24.8px | 20.4px |
axe-core 4.14.1 (also 4.10.3, the bundled version), on the first link of each list:
target-size: Target has insufficient size because it is partially obscured (smallest space is 50.4px by 20.4px, should be at least 24px by 24px)
Target has insufficient space to its closest neighbors. Safe clickable space has a diameter of 20.4px instead of at least 24px.
(The other two lists give a 16px diameter.)
Expected behavior
Targets of at least 24 x 24px that do not overlap, or the spacing that 2.5.8 allows.
Your environment
- IDE: none (terminal), Chromium via Playwright
- OS: Windows 11
- Same with Quarto 1.11.9, 1.12.3 and current
main(cda4102).
Quarto check output
Quarto 1.12.3
[>] Checking versions of quarto binary dependencies...
Pandoc version 3.13.0: OK
Dart Sass version 1.107.1: OK
Deno version 2.9.8: OK
Typst version 0.15.1: OK
[>] Checking versions of quarto dependencies......OK
[>] Checking Quarto installation......OK
Version: 1.12.3
[>] Checking tools....................OK
TinyTeX: v2026.11
VeraPDF: 1.30.3
Chrome Headless Shell: (not installed)
- 主要語言
- JavaScript
- 星號
- 6.2k
- 分支
- 492
- 平均合併
- 15 小時 15 分鐘
- 30 天內合併 PR
- 94
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
quarto-dev/quarto-cli 的其他 Issue
-
bootstrap enhancement themes
難度 2/5 1-3 小時 新手友好度 70/100
quarto-dev/quarto-cli#15421 · 2 則留言 ·
維護者通常 1 天內回覆
-
難度 1/5 1 小時以內 新手友好度 85/100
quarto-dev/quarto-cli#15408 ·
維護者通常 1 天內回覆
-
bug callouts docx regression
難度 2/5 1-3 小時 新手友好度 81/100
quarto-dev/quarto-cli#15394 · 2 則留言 ·
維護者通常 1 天內回覆
-
bug lightbox
難度 2/5 1-3 小時 新手友好度 76/100
quarto-dev/quarto-cli#15393 ·
維護者通常 1 天內回覆
-
accessibility bug website-navigation websites
難度 2/5 1-3 小時 新手友好度 75/100
quarto-dev/quarto-cli#15392 ·
維護者通常 1 天內回覆
查看 quarto-dev/quarto-cli 的全部 Issue
相似的 Issue
-
bug help wanted
難度 2/5 1-3 小時 新手友好度 80/100
LangerSword/gitone#7 ·
-
good first issue reliability security should-have
難度 2/5 1-3 小時 新手友好度 78/100
-
難度 2/5 1-3 小時 新手友好度 72/100
維護者通常 13 天內回覆
-
[BUG]: chunkSource protocol stripping truncates URLs or reads an inner scheme可能已有人在做 @Bensonbenyi 今天認領。 未關閉
難度 1/5 1 小時以內 新手友好度 88/100
Mintplex-Labs/anything-llm#7338 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 74/100
維護者通常 1 天內回覆