TanStack / TanStack/tanstack.com
Define the aria-label for the extra options menu of the copy page dropdown
まだ誰も着手していません。
- 主要言語
- TypeScript
- スター
- 1.1k
- フォーク
- 401
- 平均マージ
- 18時間 14分
- マージ済み PR(30日)
- 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
- Go to https://tanstack.com/start/latest/docs/framework/react/quick-start (or a similar documentation page).
- Turn on the screen reader (for example, VoiceOver on macOS) and tab to the "Copy page" button.
- Press tab again and listen to the "generic" announcement about this element being a menu.
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
src/components/CopyPageDropdown.tsx の 305〜314 行付近から始め、リンク先のクイックスタートページのようなドキュメントページで、スクリーンリーダーを使ってメニューの読み上げを再現します。追加オプションメニューに明確な aria-label を追加し、メニューが単に汎用的なメニューとしてではなく、意味のある形で読み上げられることを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- typescript
- 領域
- accessibility, frontend
- issue の種類
- 機能追加
- 難易度
- 1/5
- 見積もり時間
- 1時間未満
- 活発さ
- 静か
- 明瞭さ
- 明確に書かれている
- 初心者へのやさしさ
- 86/100