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

aria-command-name

ما الذي تفعله

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

متى تستخدمها

  • ✓عندما تبني أزرارًا أيقونية بلا نص مرئي.
  • ✓عندما يكون لرابط أو عنصر قائمة نص غير قابل للقراءة.
  • ✓عندما تراجع صفحة فيها عناصر يعلنها قارئ الشاشة بدورها فقط.

رابط المهارة

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

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

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

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

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

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

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

“افحص شريط الأدوات لدي بحثًا عن أزرار بلا اسم، مثل الأزرار الأيقونية، وأضف لها تسميات.”

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

كيف تعمل

يجد الوكيل عناصر الأوامر التي لا تحتوي على نص، أو aria-label، أو aria-labelledby، ويضيف إلى كل منها اسمًا واضحًا.

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

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

Provide accessible names for ARIA command elements

Without an accessible name, screen reader users will only hear the role (e.g., 'button') without knowing what it does, making the interface impossible to navigate.

Quick Reference

  • Elements with command roles (button, link, menuitem) must have a label
  • Accessible names can be provided via text content, aria-label, or aria-labelledby
  • Ensures users know the purpose of the interactive element

Check

Identify elements with command roles (like button or link) that lack a clear accessible name.

Fix

Add an accessible name using inner text, aria-label, or aria-labelledby to all command elements.

Explain

Explain how accessible names for command elements enable screen reader users to understand interactive controls.

Code Review

Review the rendered markup and interactive states that affect Provide accessible names for ARIA command elements. 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-command-name

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

ماذا يقول قارئ الشاشة عن زر بلا اسم؟

تنص المهارة على أنه قد يعلن «زر» فقط، فلا يعرف المستخدم ما يفعله.

بأي طرق أسمّي أداة تحكم؟

بنص مرئي، أو بـ aria-label، أو بـ aria-labelledby الذي يشير إلى نص آخر في الصفحة.

هل يجب أن تكون الأسماء قصيرة؟

نعم. توصي المهارة بأسماء موجزة تصف الإجراء أو الوجهة.

التفاصيل

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

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

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

0

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

التعليقات

  • …

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

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