TanStack / TanStack/tanstack.com

Define the aria-label for the extra options menu of the copy page dropdown

未关闭 适合新手
#793 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
TypeScript
星标
1.1k
派生
401
平均合并
18 小时 14 分钟
30 天内合并 PR
56

描述

Hi! 👋

Currently, in the copy page dropdown at the top of each page on the documentation pages, there is no clear label for the menu next to the "Copy page" (as Markdown) button (a screen reader only announces that it is a menu). That being said, I think it would be useful to add an aria-label to this menu to make it clearer. Two suggestions:

  • More AI options
  • More Markdown options (source)

What do you think? Let me know if I can open a PR if you agree with the change.

Steps to Reproduce

  1. Go to https://tanstack.com/start/latest/docs/framework/react/quick-start (or a similar documentation page).
  2. Turn on the screen reader (for example, VoiceOver on macOS) and tab to the "Copy page" button.
  3. Press tab again and listen to the "generic" announcement about this element being a menu.

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

从 src/components/CopyPageDropdown.tsx 的第 305-314 行附近开始,在类似链接的快速入门页面这样的文档页面上使用屏幕阅读器重现菜单播报。为额外选项菜单添加清晰的 aria-label,然后验证菜单是否以有意义的方式播报,而不是仅被播报为通用菜单。

由索引模型根据 Issue 内容生成。

评估

技术栈
typescript
领域
accessibility, frontend
Issue 类型
功能
难度
1/5
预计耗时
1 小时以内
活跃度
冷清
描述清晰度
描述清楚
新手友好度
86/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。