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

aria-required-attr

できること

このスキルは、ARIAのロールが必要な属性を持っているかを確認します。ARIAを使ってカスタムのスライダー、スイッチ、その他のウィジェットを作る開発者向けです。

使う場面

  • ✓カスタムのスライダー、スイッチ、その他のARIAのウィジェットを作っているとき。
  • ✓スクリーンリーダーが、操作部品の状態や値を伝えられないとき。
  • ✓ARIAのマークアップを仕様と照らし合わせてレビューしているとき。

スキルのリンク

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

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

使い方

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

貼り付け用メッセージ

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

AIへの頼み方の例

“私のカスタムスライダーが、スクリーンリーダーに値を伝えません。何が足りないかを見つけて修正してください。”

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

仕組み

エージェントは各ロールを必要な属性と照らし合わせて確認し、不足しているもの、たとえばスライダーのaria-valuenowを追加します。

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

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

Include required ARIA attributes for roles

Certain ARIA roles are incomplete without their required attributes, preventing assistive technologies from correctly communicating the element's state or value.

Quick Reference

  • Identify roles that require specific state or property attributes
  • Ensure attributes like aria-valuenow for sliders are present
  • Validate that all required ARIA attributes are correctly implemented

Check

Verify that all ARIA roles have their mandatory attributes as defined by the WAI-ARIA specification.

Fix

Add the missing required ARIA attributes to elements with specific roles (e.g., aria-valuenow for role="slider").

Explain

Explain how required ARIA attributes provide critical state information that screen readers need to function correctly.

Code Review

Review the rendered markup and interactive states that affect Include required ARIA attributes for roles. 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-required-attr

よくある質問

必須の属性は、なぜ重要ですか?

支援技術が機能するために必要な状態や値を、それらの属性が与えるからだと、このスキルは説明しています。

どのロールが例として挙げられていますか?

必要なaria-valuenowを持つスライダーを例として使っています。

各ロールの必要な属性の一覧はどこから得ていますか?

各ロールの必須属性の情報源として、WAI-ARIA仕様を参照しています。

詳細

作者による元の説明

Use when reviewing rendered HTML, interactive components, or design-system patterns related to Include required ARIA attributes for roles. 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
ランキング
#2734
ライセンス
MIT
更新日
2026/10/31

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

0

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

コメント

  • …

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

似ているスキル