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

aria-allowed-attr

ما الذي تفعله

هذه المهارة تفحص أن سمات ARIA تُستخدم فقط حيث يسمح بها الدور. وهي موجهة لمطوري المكوّنات القابلة للوصول التي تُبنى بـ ARIA.

متى تستخدمها

  • ✓عندما تضيف سمات ARIA إلى مكوّنات مخصصة.
  • ✓عندما يقرأ قارئ الشاشة العنصر بشكل مختلف عما هو متوقع.
  • ✓عندما تراجع شيفرة المكوّنات بحثًا عن أخطاء ARIA.

رابط المهارة

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

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

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

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

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

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

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

“افحص ترميز القائمة المنسدلة المخصصة لدي بحثًا عن سمات ARIA لا تنتمي إلى أدوارها.”

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

كيف تعمل

يراجع الوكيل دور كل عنصر وسمات ARIA الخاصة به، ثم يزيل أي سمة لا يدعمها الدور أو يصححها.

المحتوى التقني (ملف SKILL.md الأصلي)

النص الأصلي من المؤلف، مباشرة من GitHub.

Use only allowed ARIA attributes for each role

Invalid ARIA attributes are ignored by screen readers or may cause them to misinterpret the element's purpose, leading to a broken experience for users with disabilities.

Quick Reference

  • Each ARIA role only supports a specific set of ARIA attributes
  • Using unsupported attributes can confuse assistive technologies
  • Ensures the accessibility tree remains valid and meaningful

Check

Verify that all ARIA attributes used on elements are valid for their assigned WAI-ARIA roles.

Fix

Remove or correct ARIA attributes that are not supported by the element's current ARIA role.

Explain

Explain why using only role-supported ARIA attributes is necessary for proper screen reader communication.

Code Review

Review the rendered markup and interactive states that affect Use only allowed ARIA attributes for each role. 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-allowed-attr

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

ماذا يحدث عندما تكون سمة ARIA غير مسموح بها؟

تنص المهارة على أنها قد تُتجاهل، أو تجعل قارئ الشاشة يفسّر العنصر بشكل خاطئ.

هل يستبدل هذا الاختبار بتقنيات المساعدة الحقيقية؟

لا. تقترح المهارة فحص النتيجة بأدوات إمكانية الوصول أو بتقنيات مساعدة حقيقية أيضًا.

أي العناصر تفحصها؟

أي عنصر فيه سمات ARIA، بما في ذلك الأدوات المخصصة.

التفاصيل

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

Use when reviewing rendered HTML, interactive components, or design-system patterns related to Use only allowed ARIA attributes for each role. 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
الترتيب
#2723
الترخيص
MIT
آخر تحديث
31‏/10‏/2026

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

0

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

التعليقات

  • …

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

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