a11y: "Other Formats", "Other Links" and "Code Links" in the TOC sidebar are too close together for WCAG 2.5.8
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 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分
- マージ済み PR(30日)
- 94
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- 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 日以内に返信