issue(a11y): tooltips close before the pointer can reach them with Accessibility Mode on

该问题出现在 Open WebUI 开启 Accessibility Mode 后悬停按钮显示 tooltip 的场景:指针一旦离开按钮,tooltip 就立即关闭,导致无法把指针移到 tooltip 上阅读剩余内容,不满足 WCAG 1.4.13 对悬停内容保持可见的要求。优先排查共享 toolt

快速结论:该问题出现在 Open WebUI 开启 Accessibility Mode 后悬停按钮显示 tooltip 的场景:指针一旦离开按钮,tooltip 就立即关闭,导致无法把指针移到 tooltip 上阅读剩余内容,不满足 WCAG 1.4.13 对悬停内容保持可见的要求。优先排查共享 tooltip 组件是否启用了 interactive 选项,以及各调用点是否传入该选项。

适用环境:Open WebUI dev 分支(commit f1bcf9369),通过 Git Clone 安装;Linux 系统;Firefox 浏览器;Ollama v0.40.19;除 UI Scale 与 Accessibility Mode 外均为默认设置。

最快修复方案:暂无确认的一步修复方案。Issue 明确指出的根因方向是共享 tooltip 组件已有 interactive 选项(用于在指针停留在 tooltip 上时保持展开),但只有少数调用方传入了该选项。

注意事项:该 Issue 已关闭,但讨论内容未给出经维护者验证的最终代码修复或版本号;interactive 选项涉及的是调用方传参,需要逐个排查受影响的 tooltip 调用点。开启或关闭 Accessibility Mode 均能复现,说明不是该模式特有的问题。Escape 键关闭 tooltip 的行为正常(参见 #32643)。

问题场景

用户在 Linux 下的 Firefox 中使用 Open WebUI(dev 分支 f1bcf9369),在 Settings > Interface 把 UI Scale 设为 1.00x 并开启 Accessibility Mode,然后打开一条带回复的聊天。将指针悬停在回复下方的 Read Aloud、Regenerate、Good Response,以及消息输入框中的 Model controls、Dictate(麦克风)等按钮上,tooltip 正常弹出;但当指针从按钮缓慢移向 tooltip 以继续阅读时,tooltip 在指针离开按钮的瞬间关闭。对于依赖屏幕放大的用户,只能看到 tooltip 的一部分,无法把指针移到 tooltip 上读完剩余内容。

报错原文

issue(a11y): tooltips close before the pointer can reach them with Accessibility Mode on

Expected Behavior: With Accessibility Mode on, a tooltip stays open while the pointer moves from the button onto the tooltip, and closes once the pointer leaves both.

Actual Behavior: The tooltip closes as the pointer leaves the button.

原因分析

可能原因:共享 tooltip 组件本身已支持 interactive 选项,该选项用于在指针停留在 tooltip 上时保持展开;但只有少数调用方传入了该选项,Read Aloud、Regenerate、Model controls、Dictate 等按钮对应的调用点未启用它。因此这些 tooltip 被当作非交互式提示处理,指针一离开触发按钮(悬停区域)即关闭,指针没有机会移动到 tooltip 上。该现象与 Accessibility Mode 开关无关,属于 tooltip 调用方的参数配置问题。

环境排查

  • 确认 Open WebUI 版本或 commit;Issue 报告基于 dev 分支 f1bcf9369,未确认在其他版本上的表现。
  • 确认安装方式:Issue 使用 Git Clone,其他安装方式的复现情况未确认。
  • 确认操作系统与浏览器:Issue 环境为 Linux + Firefox,其他浏览器未验证。
  • 确认 Settings > Interface 中 UI Scale 与 Accessibility Mode 的状态;关闭 Accessibility Mode 后同样可复现。
  • 确认 Ollama 版本为 v0.40.19(Issue 报告环境),是否影响前端 tooltip 行为无证据。
  • 确认涉及的 tooltip 调用点:回复下方的 Read Aloud、Regenerate、Good Response,以及输入框中的 Model controls、Dictate。

解决步骤

  1. 先按 Issue 步骤复现:把 UI Scale 设为 1.00x,开启 Accessibility Mode,打开带回复的聊天,悬停 Read Aloud 等按钮,再缓慢把指针移向 tooltip,确认 tooltip 在离开按钮时关闭。
  2. 定位共享 tooltip 组件,确认其 interactive 选项的语义确为“指针停留在 tooltip 上时保持展开”(Issue 正文已说明这一点)。
  3. 逐一检查上述按钮对应的 tooltip 调用点,找出未传入 interactive 的调用方。这是可优先尝试的排查方向,因为 Issue 明确说只有少数调用方传入了该选项。
  4. 为受影响的调用点传入 interactive,使 tooltip 在指针从按钮移到 tooltip 上时保持展开,并只在指针同时离开按钮与 tooltip 后关闭。
  5. 重新验证 Read Aloud、Regenerate、Good Response、Model controls、Dictate 等每个 tooltip 的行为,避免只修好其中一个。

验证方法

在开启 Accessibility Mode 的情况下,悬停各按钮使 tooltip 出现在下方,缓慢将指针下移进入 tooltip 区域,tooltip 应保持展开;继续把指针移出 tooltip 和按钮后,tooltip 正常关闭;按 Escape 仍能关闭 tooltip(与 #32643 行为一致)。同时确认关闭 Accessibility Mode 时表现一致。

参考来源

open-webui/open-webui #35657

GamsGo AI

AI 工具推荐

想把多个 AI 模型放在一个入口?

GamsGo AI 集成 ChatGPT、DeepSeek、Gemini、Claude、Midjourney、Veo 等常用模型,适合写作、绘图、视频和日常 AI 工作流。

了解 GamsGo AI

推广链接:通过此链接购买,我可能获得佣金,不影响你的价格。

这个方案解决了吗?

celebrityanime
celebrityanime
文章: 39629

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注