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

aria-hidden-body

ما الذي تفعله

هذه المهارة تفحص أن عنصر body في الصفحة لا يحمل aria-hidden بقيمة true أبدًا. وهي موجهة لمطوري النوافذ المنبثقة وطبقات الصفحة.

متى تستخدمها

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

رابط المهارة

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

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

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

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

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

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

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

“افحص شيفرة النافذة المنبثقة لدي، وتأكد أنها لا تضبط aria-hidden على عنصر body أبدًا.”

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

كيف تعمل

يبحث الوكيل في الشيفرة عن aria-hidden على body، وينقل الإخفاء إلى حاويات خلفية محددة بدلًا من ذلك.

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

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

Do not use aria-hidden on the document body

Setting aria-hidden="true" on the body effectively silences the entire application for screen reader users, rendering the site completely unusable.

Quick Reference

  • The <body> element should never have aria-hidden="true"
  • Hiding the body makes the entire page invisible to assistive technologies
  • Often happens accidentally when managing modal states

Check

Check if the <body> element has aria-hidden="true" applied at any point in the lifecycle.

Fix

Remove aria-hidden="true" from the <body> and use it only on specific background containers when modals are open.

Explain

Explain the catastrophic impact of hiding the body element from assistive technologies.

Code Review

Review the rendered markup and interactive states that affect Do not use aria-hidden on the document body. 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-hidden-body

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

ماذا يحدث إذا أُخفي الجسم كله؟

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

كيف أخفي الخلفية عند فتح نافذة منبثقة؟

طبّق aria-hidden فقط على حاويات الخلفية المحددة أثناء فتح النافذة.

هل هذا خطأ شائع؟

تنص المهارة على أنه يحدث غالبًا بالخطأ عند إدارة حالات النوافذ المنبثقة.

التفاصيل

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

Use when reviewing rendered HTML, interactive components, or design-system patterns related to Do not use aria-hidden on the document body. 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
الترتيب
#2727
الترخيص
MIT
آخر تحديث
31‏/10‏/2026

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

0

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

التعليقات

  • …

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

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