Website search overlay has several accessibility defects
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 48/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- javascript, playwright
- Área
- accessibility, frontend
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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...
- Lenguaje dominante
- JavaScript
- Estrellas
- 6.2k
- Forks
- 492
- Merge medio
- 15 h 15 min
- PR fusionados (30 d)
- 94
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de quarto-dev/quarto-cli
-
bootstrap enhancement themes
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
quarto-dev/quarto-cli#15421 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
quarto-dev/quarto-cli#15408 ·
Los mantenedores suelen responder en 1 día
-
accessibility bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 79/100
quarto-dev/quarto-cli#15401 · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
bug callouts docx regression
Dificultad 2/5 1-3 horas Aptitud para principiantes 81/100
quarto-dev/quarto-cli#15394 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
bug lightbox
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
quarto-dev/quarto-cli#15393 ·
Los mantenedores suelen responder en 1 día
Todos los issues de quarto-dev/quarto-cli
Issues similares
-
bug help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 80/100
LangerSword/gitone#7 ·
-
good first issue reliability security should-have
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 13 días
-
[BUG]: chunkSource protocol stripping truncates URLs or reads an inner schemePosiblemente ocupada @Bensonbenyi la tomó hoy. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
Mintplex-Labs/anything-llm#7338 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Los mantenedores suelen responder en 1 día