better-accessibility
यह क्या करती है
यह AI को ऐसे इंटरफ़ेस बनाने और जाँचने के चरण समझाती है जो केवल कीबोर्ड और स्क्रीन रीडर इस्तेमाल करने वाले लोगों के लिए काम करें। यह वेब इंटरफ़ेस बनाने वाले डिज़ाइनरों और डेवलपर्स के लिए है।
कब इस्तेमाल करें
- ✓जब आप मोडल, मेन्यू, फ़ॉर्म या कस्टम विजेट बनाते हैं जिसे कीबोर्ड सपोर्ट चाहिए।
- ✓जब किसी ने आपके इंटरफ़ेस में कीबोर्ड या स्क्रीन रीडर की समस्या बताई हो।
- ✓जब आप किसी पेज या कॉम्पोनेंट की एक्सेसिबिलिटी समीक्षा चाहते हैं।
Skill का लिंक
https://github.com/trycompai/crm/blob/release/.agents/skills/better-accessibility/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“क्या आप इस ड्रॉपडाउन मेन्यू को कीबोर्ड और स्क्रीन रीडर से उपयोगी बना सकते हैं?”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
AI पहले इंटरफ़ेस को कीबोर्ड उपयोगकर्ता की नज़र से, फिर स्क्रीन रीडर उपयोगकर्ता की नज़र से जाँचता है, और अतिरिक्त लेबल वाले कस्टम तत्वों की जगह नेटिव एलिमेंट को प्राथमिकता देता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Accessibility that comes with the craft
Accessibility is not a compliance checkbox bolted on at the end; it is the floor for interface craft. Most of it is free if you use the platform: native elements ship with keyboard support, real labels announce themselves, and a visible focus ring is one CSS rule. Apply these principles when building or reviewing UI code, and match the project's existing styling system (Tailwind vs. plain CSS vs. CSS-in-JS) when applying fixes.
When reviewing, walk the interface as a keyboard-only user first (every flow must complete without a mouse), then as a screen-reader user: does each control announce a name, a role, and its state? When unsure, prefer the platform default over a custom rebuild, and remove ARIA rather than add it.
Rendered-pair contrast measurement and color remediation are covered by the better-colors skill; visual text sizing and iOS input zoom by better-typography; spatial RTL layout by better-layout.
Quick Reference
| Category | When to Use |
|---|---|
| Focus & Keyboard | Focus rings, skip links, tabindex, focus trapping, APG keyboard patterns |
| Semantics & ARIA | Native elements first, button vs link, landmarks, accessible names, disabled states |
| Forms | Labels, autocomplete, error messaging, input types |
| Screen Readers | Visually hidden content, live regions, toasts, alt text, SVG |
| Hit Areas | Target sizes, expanding hit areas, collision rules |
| Motion & Zoom | prefers-reduced-motion, autoplay and timed UI, 200% zoom, reflow, rem vs px |
Core Principles
1. Native Elements First
The first rule of ARIA: don't use ARIA when a native element exists. <button> for actions, <a href> for navigation (it must support Cmd/Ctrl/middle-click), never <div onClick>. No ARIA is better than bad ARIA.
2. Visible Focus Rings
Style :focus-visible, not bare :focus, so keyboard users get a ring and mouse users usually don't. Prefer the browser's unmodified focus indicator. If the design needs a custom ring, use a project focus token or another explicit color and verify the complete indicator against every adjacent color it crosses; currentColor is acceptable only after the same check. Use at least a 2px solid perimeter or an equivalent visible area. Never use outline: none without a verified replacement, and preserve system colors in forced-colors mode.
3. Full Keyboard Support
Every pointer interaction needs a keyboard path, following the ARIA APG patterns: Escape closes overlays, arrow keys move within composite widgets (tabs, menus, listboxes), Tab moves between widgets, Enter and Space activate. Only tabindex="0" (join the natural tab order) and tabindex="-1" (programmatic focus), never positive values, which break the natural order. Composite widgets use roving tabindex: the active item is 0, all others -1.
4. Trap and Restore Focus
Modals set inert on the background content, move focus inside on open, and return focus to the trigger on close. Add overscroll-behavior: contain so background content doesn't scroll.
5. Minimum Hit Area
WCAG 2.5.8's Level AA baseline is a 24×24 CSS-pixel target or one of its defined spacing, equivalent-control, inline, user-agent, or essential exceptions. For easier activation, aim for 44×44px in touch contexts and 40×40px in desktop interfaces when density permits. Extend with a pseudo-element if the visible element should stay smaller. Never let extended hit areas overlap.
6. Label and Type Every Control
Every input gets a <label for> or wrapping <label>; a placeholder is never a label, and label and control share one hit target: no dead zones between a checkbox and its text. Add autocomplete with a meaningful name, and the correct type and inputmode for the keyboard. Never block paste; users paste passwords and one-time codes.
7. Errors That Announce
Keep submit enabled until the request starts, then disable with a spinner while keeping the original label. Validate on submit: mark failing fields with aria-invalid="true", point aria-describedby at the inline error text, and focus the first invalid field. Use native disabled when a native control is genuinely unavailable. Use aria-disabled="true" only when retaining focusability or discoverability is intentional; then block pointer, keyboard, and form behav
अक्सर पूछे जाने वाले सवाल
क्या यह कलर कॉन्ट्रास्ट कवर करती है?
नहीं। कलर कॉन्ट्रास्ट better-colors स्किल से संभाला जाता है।
क्या हमेशा ARIA एट्रिब्यूट जोड़ने चाहिए?
नहीं। स्किल कहती है कि नेटिव प्लेटफ़ॉर्म व्यवहार को प्राथमिकता दें, और जहाँ संभव हो ARIA जोड़ने के बजाय उसे हटा दें।
क्या यह फ़ॉर्म भी कवर करती है?
हाँ। यह लेबल, autocomplete, त्रुटि संदेश और इनपुट प्रकार कवर करती है।
जानकारी
लेखक का मूल विवरण
Accessibility engineering for product interfaces, from focus states and keyboard support to ARIA, forms, and screen readers. Use when building or reviewing UI components, modals, menus, forms, custom widgets, or when the user says "make this accessible" or reports keyboard or screen-reader issues. Triggers on accessibility, a11y, WCAG, aria, focus ring, focus-visible, focus trap, keyboard navigation, tab order, tabindex, screen reader, sr-only, aria-live, alt text, hit area, touch target, prefers-reduced-motion, autoplay, toast duration, skip link, semantic HTML, aria-label, form errors, disab
repo: trycompai/crm
लोकप्रियता
- GitHub स्टार
- 12k
- रैंकिंग में स्थान
- #11508
- लाइसेंस
- MIT
- अपडेट की गई
- 1/11/2026
कमेंट
- …
इस repository की और skills
ai-elements
12kयह आपके एजेंट को बातचीत, संदेश, टूल डिस्प्ले और प्रॉम्प्ट इनपुट के लिए तैयार कॉम्पोनेंट से AI चैट इंटरफ़ेस बनाने में मदद करती है।
ai-sdk
12kयह आपके एजेंट को Vercel AI SDK से AI फ़ीचर बनाने में मदद करती है, जिसमें टेक्स्ट जनरेशन, स्ट्रीमिंग, टूल कॉलिंग और एजेंट शामिल हैं।
better-auth-best-practices
12kयह आपके एजेंट को TypeScript ऐप में लॉगिन, सेशन, OAuth और प्लगइन के लिए Better Auth सेट करने में मदद करती है, उसके दस्तावेज़ी चरणों के अनुसार।
better-colors
12kयह आपके एजेंट को वेब इंटरफ़ेस के लिए रंग बदलने, चुनने और जाँचने में मदद करती है, जिसमें OKLCH पैलेट, कॉन्ट्रास्ट और डार्क मोड शामिल हैं।
मिलती-जुलती skills
canvas
394kयह आपके एजेंट को जुड़े Mac पैनल पर होस्टेड विज़ुअल विजेट दिखाने, पैनल छिपाने या उसे दूसरे पेज पर ले जाने देती है।
control-ui
394kयह आपके एजेंट को OpenClaw Control UI को व्यवस्थित करने और उसमें आने वाली दिक्कतें सुलझाने में मदद करती है, जिसमें सेशन, डैशबोर्ड और जुड़े Gateway शामिल हैं।
diagram-maker
394kयह आपके एजेंट को प्रक्रियाओं, सिस्टम आर्किटेक्चर और व्हाइटबोर्ड स्केच के लिए SVG, HTML या संपादन योग्य Excalidraw फ़ाइलों में साफ़ डायग्राम बनाने में मदद करती है।