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

select-name

できること

このスキルは、フォームの各selectドロップダウンに、適切なラベルやアクセシブルな名前があるかを確認します。すべての利用者にとって完全なフォームを作る開発者向けです。

使う場面

  • ✓フォームのドロップダウンがアクセシブルか確認するようエージェントに頼むとき。
  • ✓スクリーンリーダーの利用者が、ドロップダウンを聞いても何のためか分からないとき。
  • ✓フォームが最初の選択肢をラベルの代わりにしていて、それを直したいとき。

スキルのリンク

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/select-name/SKILL.md

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

使い方

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

貼り付け用メッセージ

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

AIへの頼み方の例

“私のフォームの各ドロップダウンに、スクリーンリーダーが読める適切なラベルがあるか確認してください。”

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

仕組み

エージェントは各select要素を見つけ、関連付けられたlabel、aria-label、またはaria-labelledbyの値があるかを確認します。ない場合は、idを通じてドロップダウンに結びつくラベルを追加します。

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

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

Provide accessible names for select elements

Without an accessible name, screen reader users will not know what information the dropdown is asking for, making forms impossible to complete.

Quick Reference

  • Use the <label> element with a matching for attribute for every <select>
  • Alternatively, use aria-label or aria-labelledby if a visible label is not possible
  • Avoid using the first option as a replacement for a proper label

Check

Check that every <select> element in your forms has a valid accessible name or linked label.

Fix

Add a <label> element with a for attribute that matches the id of the <select> tag.

Explain

Explain how accessible names for select elements provide the necessary context for users of assistive technologies.

Code Review

Review the rendered markup and interactive states that affect Provide accessible names for select elements. 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/select-name

よくある質問

ドロップダウンにラベルが必要なのはなぜですか?

ラベルがないと、スクリーンリーダーの利用者はそこで何の情報を求められているか分からず、フォームを完了できないことがあるからです。

最初の選択肢はよいラベルになりますか?

いいえ。このスキルは、適切なラベルの代わりに最初の選択肢を使わないよう勧めています。

aria-labelはどんな場合に使いますか?

このスキルは、表示のラベルが不可能な場合に使うことを勧めています。

詳細

作者による元の説明

Use when reviewing rendered HTML, interactive components, or design-system patterns related to Provide accessible names for select elements. 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
ランキング
#3012
ライセンス
MIT
更新日
2026/10/31

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

0

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

コメント

  • …

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

似ているスキル