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

aria-command-name

できること

このスキルは、すべてのボタン、リンク、メニュー項目がスクリーンリーダーで名前を付けられるかを確認します。各操作が何をするかを示したいWeb開発者向けです。

使う場面

  • ✓表示されるテキストがない、アイコンだけのボタンを作るとき。
  • ✓リンクやメニュー項目に読めるテキストがないとき。
  • ✓ロールだけで読み上げられる操作が、ページにないかレビューするとき。

スキルのリンク

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

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

使い方

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

貼り付け用メッセージ

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

AIへの頼み方の例

“私のツールバーで、アイコンだけのボタンなど、名前のないボタンを確認し、ラベルを追加してください。”

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

仕組み

エージェントは、テキスト、aria-label、aria-labelledbyのいずれもない操作要素を見つけ、それぞれに分かりやすい名前を追加します。

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

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

Provide accessible names for ARIA command elements

Without an accessible name, screen reader users will only hear the role (e.g., 'button') without knowing what it does, making the interface impossible to navigate.

Quick Reference

  • Elements with command roles (button, link, menuitem) must have a label
  • Accessible names can be provided via text content, aria-label, or aria-labelledby
  • Ensures users know the purpose of the interactive element

Check

Identify elements with command roles (like button or link) that lack a clear accessible name.

Fix

Add an accessible name using inner text, aria-label, or aria-labelledby to all command elements.

Explain

Explain how accessible names for command elements enable screen reader users to understand interactive controls.

Code Review

Review the rendered markup and interactive states that affect Provide accessible names for ARIA command 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/aria-command-name

よくある質問

名前のないボタンを、スクリーンリーダーはどう読み上げますか?

ボタンとだけ読み上げるおそれがあり、利用者はそれが何をするものか分からないと、このスキルは説明しています。

操作に名前を付ける方法は何がありますか?

表示されるテキスト、aria-label、そしてページ内の別の場所のテキストを指すaria-labelledbyがあります。

名前は短くすべきですか?

はい。操作や遷移先を説明する簡潔な名前を勧めていると、このスキルは説明しています。

詳細

作者による元の説明

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

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

0

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

コメント

  • …

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

似ているスキル