Skip to content

fix(frontend): 补充任务预览弹窗的无障碍描述 #915

Description

@2379278408

问题描述

打开任务详情页的端口预览弹窗时,浏览器控制台出现 Radix UI 警告:

Warning: Missing `Description` or `aria-describedby={undefined}` for {DialogContent}.

根因

任务预览弹窗包含 DialogTitle,缺少与 DialogContent 关联的 DialogDescription,屏幕阅读器无法获知弹窗用途。

修复范围

  • 为任务预览弹窗增加仅供屏幕阅读器读取的描述
  • 补充中英文描述文案
  • 增加回归测试,防止描述被移除

验收标准

  • 打开任务预览弹窗后,控制台不再出现缺少 Description 的警告
  • 屏幕阅读器可以读取任务预览弹窗用途
  • 弹窗现有布局和交互保持一致
  • 前端专项测试、ESLint 和构建通过

补充说明

登录前 /api/v1/users/status 返回 401、Edge LanguageDetector 提示、浏览器扩展 content.js 日志和任务控制 WebSocket 连接失败属于独立现象,不纳入本 Issue。

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions