Unified search: screen reader hears "No matching results" on mobile even when there are results
维护者通常 1 天内回复
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 78/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- javascript
调研方向
从 UnifiedSearchModal.vue 开始,issue 指出 liveMessage 和 navigableRows 可能是小屏幕上播报错误的原因。比较移动设备和桌面宽度下的状态消息与渲染出的结果,然后检查相关组件测试(如果有)。完成标准是在 375 px 时,状态消息播报可见结果的数量,与较宽屏幕下的情况一致。
由索引模型根据 Issue 内容生成。
描述
⚠️ 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.
- 主要语言
- PHP
- 星标
- 37.4k
- 派生
- 5.3k
- 平均合并
- 2 天 7 小时
- 30 天内合并 PR
- 709
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
nextcloud/server 的其他 Issue
-
34-feedback needs info
难度 2/5 1-3 小时 新手友好度 77/100
nextcloud/server#66249 · 3 条评论 ·
维护者通常 1 天内回复
-
[Bug]: DAV Forbidden/InvalidPath responses break on "&" in the message (DOMDocument::createElementNS(): unterminated entity reference)可能已有人在做 @th-joerger 于 5 天前认领。 未关闭0. Needs triage 35-feedback bug
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 1 天内回复
-
[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)可能已有人在做 @lazerg 于 7 天前认领。 未关闭0. Needs triage 34-feedback bug
难度 2/5 1-3 小时 新手友好度 77/100
nextcloud/server#65904 · 1 条评论 ·
维护者通常 1 天内回复
-
[Bug]: Contradictory notifications when cancelling welcome email confirmation可能已有人在做 @Jashan32 于 8 天前认领。 未关闭0. Needs triage 36-feedback bug
难度 2/5 1-3 小时 新手友好度 67/100
维护者通常 1 天内回复
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 69/100
opnsense/core#11171 · 1 个 reaction ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
getgrav/grav-plugin-form#664 ·
-
claude
难度 2/5 1-3 小时 新手友好度 82/100
sprain/sprainocchio#26 ·
-
sync-en
难度 1/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复
-
sync-en
难度 1/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复