मुख्य सामग्री पर जाएँ
Skillpedia
वेबसाइट और UI (frontend)75k · #2727

aria-hidden-body

यह क्या करती है

यह स्किल जाँचती है कि वेब पेज की body में कभी aria-hidden true न हो। यह उन डेवलपर के लिए है जो modal और पेज ओवरले संभालते हैं।

कब इस्तेमाल करें

  • ✓जब आपका कोड modal खुलने पर पृष्ठभूमि छिपाता है।
  • ✓जब कोई स्क्रीन रीडर उपयोगकर्ता बताए कि साइट पर कुछ भी पढ़ा नहीं जा सकता।
  • ✓जब आप ऐसी स्क्रिप्ट की समीक्षा कर रहे हों जो body एलिमेंट के एट्रिब्यूट बदलती है।

Skill का लिंक

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

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/aria-hidden-body/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“मेरे modal कोड की जाँच करें और पक्का करें कि वह body एलिमेंट पर कभी aria-hidden सेट नहीं करता।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

एजेंट कोड में body पर aria-hidden खोजता है, और छिपाने का काम इसके बजाय खास पृष्ठभूमि कंटेनर पर ले जाता है।

तकनीकी सामग्री (मूल 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

अक्सर पूछे जाने वाले सवाल

अगर body छिप जाए तो क्या होता है?

स्किल के अनुसार पूरी साइट स्क्रीन रीडर के लिए अदृश्य हो जाती है, जिससे वह उनके लिए बेकार हो जाती है।

modal खुले होने पर पृष्ठभूमि कैसे छिपाएं?

modal खुला हो तब भी aria-hidden सिर्फ़ खास पृष्ठभूमि कंटेनर पर लगाएं।

क्या यह आम गलती है?

स्किल कहती है कि modal की स्थिति संभालते समय यह अक्सर अनजाने में हो जाती है।

जानकारी

लेखक का मूल विवरण

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

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

मिलती-जुलती skills