本文へスキップ
Skillpedia
WebサイトとUI(フロントエンド)75k · #2910

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がスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/label-content-name-mismatch/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

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.

repo: thedaviddias/Front-End-Checklist

人気

GitHubのスター
75k
ランキング
#2910
ライセンス
MIT
更新日
2026/10/31

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル