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

aria-deprecated-role

できること

このスキルは、古くなっているか、HTMLで使うべきでないARIAロールを見つけます。マークアップがブラウザや支援ツールで確実に動くようにしたい開発者向けです。

使う場面

  • ✓コードにdirectoryのようなロールを見つけたとき。
  • ✓古いマークアップを、現在のアクセシビリティ標準に合わせて更新しているとき。
  • ✓ネイティブのHTML要素が、カスタムロールの代わりになるとき。

スキルのリンク

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

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

使い方

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

貼り付け用メッセージ

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

AIへの頼み方の例

“私のテンプレートで古いARIAロールを検索し、代わりに使うべきものを教えてください。”

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

仕組み

エージェントは、非推奨または抽象的なロールをマークアップから探し、現在のロールや、より単純なネイティブのHTML要素に置き換えます。

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

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

Avoid using deprecated ARIA roles

Using deprecated roles can lead to inconsistent behavior across different browsers and screen readers as they transition to newer standards.

Quick Reference

  • Deprecated ARIA roles should be replaced with modern equivalents
  • Browsers may drop support for deprecated roles in future versions
  • Ensures long-term compatibility with assistive technologies

Check

Search the codebase for deprecated ARIA roles like directory or abstract roles that shouldn't be used in HTML.

Fix

Update deprecated ARIA roles to their modern recommended equivalents or use native HTML elements.

Explain

Explain the risks of using deprecated ARIA roles and the benefits of moving to modern ARIA standards.

Code Review

Review the rendered markup and interactive states that affect Avoid using deprecated ARIA 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-deprecated-role

よくある質問

非推奨のロールは、なぜ問題ですか?

ブラウザやスクリーンリーダーがそれらを一貫せず扱うことがあり、将来サポートが終わるおそれがあると、このスキルは説明しています。

抽象ロールとは何ですか?

抽象ロールは仕様のためだけのもので、HTMLに現れるべきではないと、このスキルは述べています。

ARIAより簡単な方法はありますか?

はい。同じ働きができる場合は、ネイティブのHTML要素を使うよう、このスキルは提案しています。

詳細

作者による元の説明

Use when reviewing rendered HTML, interactive components, or design-system patterns related to Avoid using deprecated ARIA 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
ランキング
#2725
ライセンス
MIT
更新日
2026/10/31

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

0

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

コメント

  • …

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

似ているスキル