Unified search: screen reader hears "No matching results" on mobile even when there are results

Abierto Apto para principiantes
#66,414 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

@lazerg ya está trabajando en esto.

Desde el 6/11/2026.

  • #66415 de @lazerg — abierto

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
78/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
javascript

Línea de trabajo

Empieza por UnifiedSearchModal.vue, donde el issue señala liveMessage y navigableRows como la causa probable del anuncio incorrecto en pantallas pequeñas. Compara el mensaje de estado con los resultados renderizados en anchos móviles y de escritorio, y luego revisa las pruebas relevantes del componente, si están disponibles. Se considera terminado cuando el mensaje de estado anuncia el número de resultados visibles a 375 px, igual que en anchos mayores.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

⚠️ This issue respects the following points: ⚠️
  • This is not a troubleshooting question, general support matter, or webserver/proxy problem, but likely a bug (if unsure, ask the Community Help Forum).
  • This issue is not already reported on Github OR solved at the Community Help Forum (I've searched!).
  • I'm using a maintained major version of Nextcloud Server and tested against the latest patch level. (Supported major versions and current patch levels).
  • I agree to follow Nextcloud's Code of Conduct.
  • I've tried my best to provide clear reproduction steps that someone unfamiliar with this bug could use to reproduce it.
Bug description

On small screens the live region in the unified search modal says "No matching results" after the search finishes, even though results are shown. Screen reader users on a phone are told there's nothing, while the list is right there.

I think the cause is in UnifiedSearchModal.vue: liveMessage checks navigableRows.length === 0, but navigableRows always returns [] when isSmallMobile is true (no arrow key navigation on mobile). So on mobile the count is always 0.

Counting the rendered results instead of navigableRows would probably fix it.

Steps to reproduce
  1. Open Nextcloud 35 at a narrow width (I used 375 px)
  2. Open the unified search and search for something that has results
  3. Check the role="status" element in the modal, or listen with a screen reader
Expected behavior

It announces the number of results, like it does on desktop ("3 results").

Nextcloud Server version

35

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.3

Web server

Other

Database engine version

SQlite

Is this bug present after an update or on a fresh install?

Fresh Nextcloud Server install

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

What user-backends are you using?
  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other
Configuration report

No response

List of activated Apps

No response

Nextcloud Signing status

No response

Nextcloud Logs

No response

Additional info

Actual behavior: it announces "No matching results".

Same search at 768 px and 1280 px: the status says "3 results". At 375 px it says "No matching results" with the same three results on screen. Same code on master.

Lenguaje dominante
PHP
Estrellas
37.4k
Forks
5.3k
Merge medio
2 d 7 h
PR fusionados (30 d)
709

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de nextcloud/server

Todos los issues de nextcloud/server

Issues similares

Más issues de PHP

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.