Website search overlay has several accessibility defects
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 48/100
- Issue 類型
- 缺陷
- 描述清晰度
- 基本清楚
- 活躍度
- 活躍
- 技術堆疊
- javascript, playwright
研究方向
The issue proposes updating AUTOCOMPLETE_JS to 1.19.12, which fixes the first listed defect; it also points to quarto-search.js and quarto-search.scss for several remaining issues. Start by reading the search setup around defaultActiveItemId and the noResults template, then compare the overlay behavior against the reproduction steps. Done means the agreed accessibility defects are fixed and the stated keyboard and screen reader behaviors work; the issue does not define a single bounded task.
由索引模型根據 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 website search overlay has the accessibility defects in the list below. The search UI is mostly @algolia/autocomplete-js. Quarto bundles version 1.19.1. As a result, some defects are in Quarto code and some are upstream.
I tested on main (5b23163) and again after an update of autocomplete to 1.19.12, the latest release. I used Chromium and WebKit through Playwright, at 1280px and 320px. All four combinations gave the same results.
Scope. search.type: textbox (the default for sidebar search) uses the same overlay below 992px. At desktop width, the textbox has the shortcut defect, the live-region defect, the magnifier Tab stop, and the "Submit" input name (#15062). The other defects are only in the overlay.
Proposed first task: update AUTOCOMPLETE_JS to 1.19.12. This update corrects the first item, and the changelog shows no breaking changes. A separate PR can do it.
- Esc and Cancel move focus to
<body>, not to the search button. 2.4.3. Owner: dependency. The update to 1.19.12 corrects this (algolia/autocomplete#1357). - Tab moves focus out of the overlay into the page behind it. 2.4.3. After the last result, focus goes to the skip link, then the navbar. Owner: Quarto, or upstream. Quarto can set
inerton the page while the overlay is open. - Focus on the page behind the overlay is hidden. 2.4.11. The overlay backdrop covers each element that gets focus in the item above. Owner: same as above.
- Screen readers can read the page behind the overlay. 1.3.1. The overlay has no
role="dialog"oraria-modal, and the page has noinertoraria-hidden. Owner: same as above. - The result count and "No results" are not announced. 4.1.3. The page has no
aria-liveregion orrole="status". Owner: upstream (algolia/autocomplete#1329, open PR), or Quarto with a live region in thenoResultstemplate. -
role="combobox"is on the.aa-Autocompletewrapper in the navbar, not on the input in the overlay. 4.1.2. The input does getaria-activedescendantwhen the arrow keys move the selection. Owner: upstream (algolia/autocomplete#589). - The magnifier button is a Tab stop before the input, is named "Submit", and only closes the overlay. 4.1.2. Enter on the button closes the overlay, opens no result, and moves focus to
<body>. Owner: Quarto (the name and the empty action). The button is upstream markup, but Quarto can remove it from the Tab order. - The input has no reliable name. 4.1.2. Owner: Quarto (#15062).
- The selection highlight stays on the first result when Tab moves focus to other results. 2.4.7. Two results then look active. Owner: Quarto. Related:
defaultActiveItemId: 0and thearia-selectedstyles. The open focus-ring PR #15163 does not change this. - Readers cannot turn off the single-key shortcuts
f,/, ands. 2.1.4. Only the author can change them, withsearch.keyboard-shortcut(handler). Owner: Quarto.
Related: #14377 (#quarto-search-results is outside a landmark), #13329 (shortcut conflicts), #15139 (focus rings).
AI tools helped with this investigation. The findings come from a local clone of quarto-cli and rendered test sites.
Steps to reproduce
A website with one page. Navbar search uses the overlay by default.
_quarto.yml:
project:
type: website
website:
navbar:
title: "Search test"
index.qmd:
---
title: Planets
---
## Mars
Mars is the fourth planet from the Sun.
## Jupiter
Jupiter is the largest planet.
- Render the site and open
index.html. - Press Tab until the search button has focus. Press Enter.
- Type
mars. Press Esc. Focus goes to<body>. - Open the search again and type
mars. Press Tab five times. Focus leaves the overlay. - Type
zzz. Nothing announces "No results". - Press Shift+Tab from the input. Focus goes to a button named "Submit".
Actual behavior
See the list in the bug description.
Expected behavior
The overlay acts as a modal dialog. Focus stays in it and goes back to the search button when the overlay closes. Screen readers announce the input name, the result count, and the active result. Only the result with focus looks active.
Your environment
- IDE: none (browser test with Playwright 1.64.1: Chromium and WebKit)
- OS: macOS 27.0.1 (build 26A434)
Quarto check output
Quarto 1.11.6
[✓] Checking environment information...
Quarto cache location: /Users/charlottewickham/Library/Caches/quarto
Project: none found (single-file mode)
[✓] Checking versions of quarto binary dependencies...
Pandoc version 3.10.0: OK
Dart Sass version 1.101.0: OK
Deno version 2.7.14: OK
Typst version 0.15.1: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
Version: 1.11.6
Path: /Applications/quarto/bin
[✓] Checking tools....................OK
TinyTeX: v2026.04
Chrome Headless Shell: 150.0.7871.115
VeraPDF: 1.28.2
[✓] Checking LaTeX....................OK
Using: TinyTex
Path: /Users/charlottewickham/Library/TinyTeX/bin/universal-darwin
Version: 2026
[✓] Checking Chrome Headless....................OK
Using: Chrome Headless Shell installed by Quarto
Path: /Users/charlottewickham/Library/Application Support/quarto/chrome-headless-shell/chrome-headless-shell-mac-arm64/chrome-headless-shell
Version: 150.0.7871.115
[✓] Checking basic markdown render....OK
[✓] Checking R installation...........OK
Version: 4.6.0
Path: /Library/Frameworks/R.framework/Versions/4.6/Resources
LibPaths:
- /Users/charlottewickham/Library/R/arm64/4.6/library
- /Library/Frameworks/R.framework/Versions/4.6/Resources/library
knitr: 1.51
rmarkdown: 2.31
[✓] Checking Knitr engine render......OK
[✓] Checking Python 3 installation....OK
Version: 3.12.2
Path: /Users/charlottewickham/.pyenv/versions/3.12.2/bin/python3
Jupyter: 5.9.1
Kernels: python3
[✓] Checking Jupyter engine render....OK
[✓] Checking Julia installation...
- 主要語言
- 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 天內回覆
-
accessibility bug
難度 2/5 1-3 小時 新手友好度 79/100
quarto-dev/quarto-cli#15401 · 1 個 reaction ·
維護者通常 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 天內回覆
查看 quarto-dev/quarto-cli 的全部 Issue
相似的 Issue
-
難度 1/5 1 小時以內 新手友好度 75/100
testing-library/jest-dom#749 ·
-
bug
難度 2/5 1-3 小時 新手友好度 65/100
-
ernst:4-klein prio:3-wacht ui
難度 2/5 1-3 小時 新手友好度 70/100
NewspeedyNL/PidLane#767 ·
維護者通常 1 天內回覆
-
bug for-agent ready
難度 2/5 1-3 小時 新手友好度 62/100
WenyuChiou/agent-board#1812 · 2 則留言 ·
維護者通常 1 天內回覆
-
bug help wanted Should Have ui
難度 2/5 1-3 小時 新手友好度 82/100
hannahro15/Musical-Match-Saga#327 · 1 則留言 ·
維護者通常 1 天內回覆