Skillpedia
المواقع والواجهات (frontend)75k · #2710

accessible-notifications

ما الذي تفعله

هذه المهارة تفحص أن الرسائل التي تظهر على الشاشة يُعلن عنها لمستخدمي قارئات الشاشة. وهي موجهة لمطوري الويب الذين يريدون أن تصل الإشعارات المهمة إلى كل زائر.

متى تستخدمها

  • ✓عندما تبني رسائل خطأ في النماذج أو إشعارات نجاح.
  • ✓عندما تحدّث الصفحة محتواها دون إعادة تحميل، وقد يفوت قارئ الشاشة التغيير.
  • ✓عندما تراجع مكوّنات التنبيه المشتركة من حيث إمكانية الوصول.

رابط المهارة

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

انسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.

طريقة الاستخدام

أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.

رسالة جاهزة للصق

استخدم هذه المهارة لمساعدتي: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/accessible-notifications/SKILL.md اقرأ ملف SKILL.md في هذا الرابط ونفّذ تعليماته لمهمتي.
تريد أن يجد الذكاء الاصطناعي مهارات مثل هذه بنفسه؟ثبّت خادم Skillpedia MCP المجاني: سطر واحد، ويبحث في 15,000+ مهارة قبل كل مهمة.ثبّته في دقيقة واحدة →

مثال على ما تطلبه من الذكاء الاصطناعي

“تأكد من أن رسائل الخطأ في نموذج التواصل لدينا يقرؤها قارئ الشاشة.”

5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.

كيف تعمل

يفحص الوكيل المناطق المباشرة (live regions) والأدوار المناسبة مثل 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

الأسئلة الشائعة

ما المنطقة المباشرة؟

هي جزء من الصفحة يعلن قارئ الشاشة عنه عندما يتغير محتواه.

هل تكون الرسالة polite أم assertive؟

تنص المهارة على استخدام polite للتحديثات العادية وassertive للتحديثات العاجلة.

هل يحتاج الإشعار إلى طريقة لإغلاقه؟

نعم. توصي المهارة بخيار إغلاق مرئي وآخر برمجي.

التفاصيل

الوصف الأصلي من المؤلف

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
آخر تحديث
31‏/10‏/2026

هل هذه المهارة مفيدة؟

0

سجّل الدخول للتصويت.

التعليقات

  • …

المزيد من المهارات من هذا المستودع

مهارات مشابهة