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

aria-required-attr

ما الذي تفعله

هذه المهارة تفحص أن أدوار ARIA تتضمن السمات التي يجب أن تحملها. وهي موجهة لمطوري المنزلقات والمفاتيح وغيرها من الأدوات المخصصة بـ ARIA.

متى تستخدمها

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

رابط المهارة

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

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

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

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

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

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

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

“المنزلق المخصص لدي لا يخبر قارئ الشاشة بقيمته. ابحث عما ينقصه وأصلحه.”

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

كيف تعمل

يتحقق الوكيل من كل دور مقابل السمات المطلوبة له، ويضيف أي سمة ناقصة، مثل aria-valuenow للمنزلق.

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

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

Include required ARIA attributes for roles

Certain ARIA roles are incomplete without their required attributes, preventing assistive technologies from correctly communicating the element's state or value.

Quick Reference

  • Identify roles that require specific state or property attributes
  • Ensure attributes like aria-valuenow for sliders are present
  • Validate that all required ARIA attributes are correctly implemented

Check

Verify that all ARIA roles have their mandatory attributes as defined by the WAI-ARIA specification.

Fix

Add the missing required ARIA attributes to elements with specific roles (e.g., aria-valuenow for role="slider").

Explain

Explain how required ARIA attributes provide critical state information that screen readers need to function correctly.

Code Review

Review the rendered markup and interactive states that affect Include required ARIA attributes for roles. 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-required-attr

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

لماذا تهم السمات المطلوبة؟

تنص المهارة على أنها تمنح التقنيات المساعدة الحالة أو القيمة التي تحتاجها للعمل.

ما الدور المثال؟

تستخدم المهارة المنزلق، الذي يحتاج إلى aria-valuenow.

من أين تأتي قائمة المتطلبات؟

تشير المهارة إلى مواصفة WAI-ARIA كمرجع لسمات كل دور المطلوبة.

التفاصيل

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

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

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

0

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

التعليقات

  • …

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

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