label-content-name-mismatch
できること
このスキルは、画面上のラベルが、支援技術が読み上げる名前と一致しているかを確認します。ARIA属性を使ってボタンやリンク、操作部品を作る開発者向けです。
使う場面
- ✓音声操作の利用者がボタンの表示名を言っても反応しないとき。
- ✓ボタンのaria-labelが画面上の文字と異なるとき。
- ✓カスタムの操作部品をアクセシビリティの観点から確認するとき。
スキルのリンク
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/label-content-name-mismatch/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“私のボタンのラベルが、スクリーンリーダーや音声操作で読み上げられる内容と一致しているか確認してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは、画面上の文字とaria-labelやaria-labelledbyの値を比べます。アクセシブルな名前の先頭に、画面上の正確な文字を含めるよう提案します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Align visible labels with accessible names
When the visible label doesn't match the accessible name, voice control users may find it impossible to interact with the element by speaking its name.
Quick Reference
- Visible text should be part of the accessible name (ARIA label)
- Ensure speech-to-text users can trigger controls by their visible name
- Maintain consistency between what is seen and what is read by tech
Check
Compare the visible text of buttons and links with their 'aria-label' or 'aria-labelledby' attributes to ensure the visible text is included in the accessible name.
Fix
Update the ARIA attribute to include the exact string of the visible label text at the beginning of the accessible name.
Explain
Explain how a mismatch between visible labels and accessible names breaks the experience for users of voice recognition software.
Code Review
Review the rendered markup and interactive states that affect Align visible labels with accessible names. Flag exact elements, roles, labels, focus behavior, or keyboard interactions that violate the rule, and note how to verify the fix with browser accessibility tooling or assistive tech.
For full implementation details, code examples, and framework-specific guidance,
see references/rule.md.
Rule page: https://frontendchecklist.io/rules/accessibility/label-content-name-mismatch
よくある質問
音声操作の利用者になぜ一致するラベルが必要ですか?
このスキルによると、音声操作の利用者は操作部品の表示名をそのまま話すことが多いため、アクセシブルな名前にその文字が含まれている必要があります。
ラベルのどこに表示名を入れるべきですか?
このスキルは、アクセシブルな名前の先頭に、表示されているラベルの文字を正確に置くことを勧めています。
修正はどのように確認しますか?
このスキルは、ブラウザーのアクセシビリティツールや支援技術の利用を勧めています。
詳細
作者による元の説明
Use when reviewing rendered HTML, interactive components, or design-system patterns related to Align visible labels with accessible names. Check native semantics first, then inspect keyboard behavior, focus flow, accessible names, and screen-reader output where relevant.
人気
- GitHubのスター
- 75k
- ランキング
- #2910
- ライセンス
- MIT
- 更新日
- 2026/10/31
コメント
- …
このリポジトリの他のスキル
frontendchecklist
75kコマンドラインツールを使って、フロントエンドのコードとライブページを、アクセシビリティ、速度、SEO、セキュリティに関する380以上のルールと照らし合わせて確認します。
frontend-checklist-global
75kフロントエンドのプロジェクトを、386のFront-End Checklistのルールすべてと照らし合わせて監査し、見つかった問題ごとに具体的な修正方法を示します。
404-page
75k見つからないページの画面に役立つリンクがあり、本物の404ステータスを返すかを確認し、迷った訪問者が目的のページを見つけられるようにします。
about-page
75kサイトの運営者が誰かを説明する、分かりやすいAboutページがあるかを確認し、訪問者と検索エンジンからの信頼を高めます。
似ているスキル
angular-developer
280kエージェントがAngularのコードを作成し、プロジェクト構成についてアドバイスできるようにします。新しいプロジェクトの開始、コード部品の作成、パフォーマンスやアクセシビリティの改善に役立ちます。
frontend-a11y
280kエージェントが Web インターフェースを誰にとっても使いやすくするよう支援します。スクリーンリーダーやキーボード操作に対応し、サイトやアプリが適切に動作するようにします。
frontend-patterns
280kエージェントがフロントエンド開発の最新パターンを適用できるようにします。React と Next.js において、パフォーマンスの最適化、状態管理、ベストプラクティスの遵守を行います。