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

duplicate-id-aria

ما الذي تفعله

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

متى تستخدمها

  • ✓عندما يقرأ قارئ الشاشة تسمية خاطئة لعنصر تحكم.
  • ✓عندما تنسخ مكونًا يستخدم aria-labelledby أو سمات مشابهة.
  • ✓عندما تراجع إمكانية الوصول لأقسام متكررة في الصفحة.

رابط المهارة

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

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

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

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

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

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

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

“هل تستطيع التحقق من أن تسميات ARIA عندي تشير إلى العناصر الصحيحة؟”

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

كيف تعمل

يجد الوكيل سمات ARIA التي تشير إلى معرّفات تظهر أكثر من مرة. ويقترح جعل كل معرّف فريدًا وتحديث المراجع المطابقة له.

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

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

Use unique IDs for ARIA references

When ARIA attributes point to duplicate IDs, assistive technologies may read the wrong label or description, providing misleading information to the user.

Quick Reference

  • Ensure IDs referenced by ARIA attributes (e.g., aria-labelledby) are unique
  • Avoid duplicate IDs that lead to ambiguous accessibility relationships
  • Verify that ARIA controls correctly target their intended elements

Check

Identify elements where an ARIA attribute references an id that appears multiple times in the DOM.

Fix

Ensure all elements referenced by ARIA attributes have unique IDs and update the references accordingly.

Explain

Explain how unique IDs are essential for establishing reliable relationships between ARIA attributes and their targets.

Code Review

Review the rendered markup and interactive states that affect Use unique IDs for ARIA references. 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/duplicate-id-aria

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

ما هو aria-labelledby؟

سمة تخبر الأدوات المساعدة بالعنصر الذي يوفر الاسم لعنصر آخر.

ماذا يحدث مع المعرّفات المكررة هنا؟

قد يعلن قارئ الشاشة تسمية من مكان خاطئ، فيعطي معلومات مضللة.

كيف يجب التحقق من النتيجة؟

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

التفاصيل

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

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

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

0

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

التعليقات

  • …

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

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