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

accessible-notifications

できること

このスキルは、画面上のメッセージがスクリーンリーダーの利用者に伝わるかを確認します。重要なお知らせを、すべての訪問者に届けたいWeb開発者向けです。

使う場面

  • ✓フォームのエラーメッセージや成功の通知を作っているとき。
  • ✓ページが再読み込みせずに内容を更新し、スクリーンリーダーが変化を見逃すおそれがあるとき。
  • ✓共有のアラートコンポーネントをアクセシビリティの観点でレビューしているとき。

スキルのリンク

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

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

使い方

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

貼り付け用メッセージ

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

AIへの頼み方の例

“私の問い合わせフォームのエラーメッセージが、スクリーンリーダーで読み上げられるようにしてください。”

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

仕組み

エージェントは、alertやstatusなどのライブリージョンと適切なロールがあるかを確認し、メッセージが読めるだけの時間表示され、閉じられることを確かめます。

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

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

Make notifications accessible

Without proper ARIA attributes, screen reader users miss critical notifications like form errors, success messages, and real-time updates—leaving them unaware of important page changes.

Quick Reference

  • Use aria-live regions to announce dynamic content changes
  • Choose between 'polite' (waits) and 'assertive' (interrupts) based on urgency
  • Ensure notifications persist long enough to be read
  • Provide visible and programmatic dismiss options

Check

Verify notifications use aria-live regions, appropriate role (alert or status), and persist long enough to be read.

Fix

Implement notifications with role='alert' or role='status', aria-live='polite' or 'assertive', and adequate display time.

Explain

Explain how accessible notifications ensure all users are informed of important updates regardless of how they interact with the page.

Code Review

Review templates, server-rendered HTML, and shared components that output markup related to Make notifications accessible. Flag exact elements, attributes, and routes where the rendered HTML violates the rule.


For full implementation details, code examples, and framework-specific guidance, see references/rule.md.

Rule page: https://frontendchecklist.io/rules/html/accessible-notifications

よくある質問

ライブリージョンとは何ですか?

内容が変わったときに、スクリーンリーダーがその変化を読み上げるページ上の領域です。

メッセージは穏やかに知らせるべきですか、それとも即座に知らせるべきですか?

通常の更新には穏やかな設定を、緊急の更新には即座に知らせる設定を使うよう、このスキルは勧めています。

通知を閉じる方法は必要ですか?

はい。このスキルでは、画面上の閉じるボタンと、プログラムで閉じる方法の両方を勧めています。

詳細

作者による元の説明

Use when reviewing templates, rendered HTML, or shared components related to Make notifications accessible. Validate the final browser-facing markup, not just the source framework abstraction.

repo: thedaviddias/Front-End-Checklist

人気

GitHubのスター
75k
ランキング
#2710
ライセンス
MIT
更新日
2026/10/31

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

0

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

コメント

  • …

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

似ているスキル