Unified search: screen reader hears "No matching results" on mobile even when there are results
I maintainer di solito rispondono entro 1 giorno
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 78/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- javascript
- Ambito
- accessibility, frontend
Direzione di ricerca
Inizia da UnifiedSearchModal.vue, dove l’issue indica liveMessage e navigableRows come probabile causa dell’annuncio errato sugli schermi piccoli. Confronta il messaggio di stato con i risultati visualizzati a larghezze per dispositivi mobili e desktop, quindi controlla i test pertinenti del componente, se disponibili. Il lavoro è concluso quando il messaggio di stato annuncia il numero di risultati visibili a 375 px, come avviene alle larghezze maggiori.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
⚠️ 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
- Open Nextcloud 35 at a narrow width (I used 375 px)
- Open the unified search and search for something that has results
- 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.
- Lingua principale
- PHP
- Stelle
- 37.4k
- Fork
- 5.3k
- Merge medio
- 2g 7h
- PR unite (30g)
- 709
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di nextcloud/server
-
34-feedback needs info
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
nextcloud/server#66249 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
[Bug]: DAV Forbidden/InvalidPath responses break on "&" in the message (DOMDocument::createElementNS(): unterminated entity reference)Forse già presa @th-joerger l’ha presa 5 giorni fa. Aperta0. Needs triage 35-feedback bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
I maintainer di solito rispondono entro 1 giorno
-
[Bug]: Files folder-tree API eagerly lists the children of every subfolder at the last requested depth, then discards them (N extra directory listings per request)Forse già presa @lazerg l’ha presa 7 giorni fa. Aperta0. Needs triage 34-feedback bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
nextcloud/server#65904 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
[Bug]: Contradictory notifications when cancelling welcome email confirmationForse già presa @Jashan32 l’ha presa 8 giorni fa. Aperta0. Needs triage 36-feedback bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di nextcloud/server
Issue simili
-
IDS: enable Suricata 8 Hyperscan MPM cache (detect.sgh-mpm-caching) in suricata.yaml templateAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 69/100
opnsense/core#11171 · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
getgrav/grav-plugin-form#664 ·
-
claude
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
sprain/sprainocchio#26 ·
-
sync-en
Difficoltà 1/5 1-3 ore Idoneità per principianti 84/100
I maintainer di solito rispondono entro 1 giorno
-
sync-en
Difficoltà 1/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno