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

form-field-multiple-labels

できること

このスキルは、二つ以上のラベルが付いているフォームの欄を確認します。支援ツールにとって分かりやすいフォームの欄を作りたい開発者向けです。

使う場面

  • ✓フォームの欄が、二つの異なるテキスト要素でラベル付けされているとき。
  • ✓スクリーンリーダーが、欄の名前を二度読んだり、おかしく読んだりするとき。
  • ✓コンポーネントライブラリから来たフォームのマークアップをレビューするとき。

スキルのリンク

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/form-field-multiple-labels/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

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

AIへの頼み方の例

“フォームの各欄に、ラベルが一つだけあるか確認してもらえますか。”

毎週5つの新しいスキル。1分で読めます。

仕組み

エージェントは、複数のラベル要素に紐付いている入力欄を探します。一つのラベルにまとめるか、複数の部分からなる名前には aria-labelledby を使うことを提案します。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

Use a single label for each form field

Multiple labels for a single field can cause screen readers to announce redundant information or fail to correctly associate the input with its purpose.

Quick Reference

  • Associate each form input with exactly one <label> element
  • Use aria-labelledby if multiple pieces of text must label a single field
  • Avoid duplicate labels that can confuse screen readers and voice control

Check

Search for form inputs that are associated with more than one <label> element.

Fix

Consolidate multiple labels into a single <label> or use aria-labelledby to reference multiple sources of text.

Explain

Explain how a 1:1 relationship between labels and inputs ensures clarity for assistive technology users.

Code Review

Review the rendered markup and interactive states that affect Use a single label for each form field. 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/form-field-multiple-labels

よくある質問

複数のラベルはなぜ問題なのですか?

スクリーンリーダーが、情報を重複して読んだり、入力欄とその目的を正しく結び付けられなかったりするおそれがあるからです。

aria-labelledby はいつ使いますか?

複数の文章をまとめて一つの欄の名前にする必要があるときに使うことを提案しています。

修正が正しいかどうやって確認しますか?

ブラウザのアクセシビリティツールや支援技術を使うことを勧めています。

詳細

作者による元の説明

Use when reviewing rendered HTML, interactive components, or design-system patterns related to Use a single label for each form field. 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
ランキング
#2856
ライセンス
MIT
更新日
2026/10/31

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

0

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

コメント

  • …

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

似ているスキル