link-in-text-block
यह क्या करती है
यह स्किल टेक्स्ट ब्लॉक के अंदर के लिंक जाँचती है और सुनिश्चित करती है कि वे दिखने में साफ़ हों, आमतौर पर अंडरलाइन से। यह डिज़ाइनर्स और फ़्रंट-एंड बिल्डर्स के लिए है जिन्हें एक्सेसिबिलिटी की परवाह है।
कब इस्तेमाल करें
- ✓जब आप एजेंट से आर्टिकल या पैराग्राफ़ के अंदर के लिंक की स्टाइल जाँचवाना चाहते हैं।
- ✓जब डिज़ाइन में लिंक से अंडरलाइन हटा दी गई हो और आप देखना चाहते हैं कि वे अब भी साफ़ दिखते हैं।
- ✓जब आप एक्सेसिबिलिटी रिव्यू के लिए पेज तैयार कर रहे हैं और पक्का करना है कि लिंक सिर्फ़ रंग से पहचाने न जाएँ।
Skill का लिंक
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/link-in-text-block/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“क्या आप जाँच सकते हैं कि मेरे ब्लॉग पोस्ट के लिंक बाकी टेक्स्ट से आसानी से अलग दिखते हैं?”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट टेक्स्ट ब्लॉक के भीतर लिंक स्टाइल्स देखता है और अंडरलाइन या पर्याप्त कलर कॉन्ट्रास्ट की जाँच करता है। जो लिंक छूट सकता है, उसकी रिपोर्ट देकर सुधार सुझाता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Make links in text blocks visually distinguishable
Approximately 8% of men and 0.5% of women have color vision deficiency (red-green being most common). If links are distinguished only by a color like blue or red, these users may not identify them as links and miss critical navigation or reference information. The underline is a universal, color-independent signal understood across cultures and vision abilities. Removing underlines is a common design trend that disproportionately affects users with low vision and cognitive disabilities.
Quick Reference
- Color must not be the only visual means of distinguishing links from surrounding text — WCAG 2.1 SC 1.4.1 (Use of Color)
- Option 1: Underline links (the browser default and most robust approach)
- Option 2: If no underline, the link color must have ≥ 3:1 contrast ratio against surrounding body text AND ≥ 4.5:1 against the background
- Focus and hover states must also maintain distinguishability
- Applies only to links embedded within paragraphs/text blocks; standalone navigation links have different requirements
Check
Find all <a> elements within text-heavy containers (paragraphs, article body, list items containing prose). Check the CSS applied: if text-decoration: none or text-decoration: underline is removed, verify that the link color has at least 3:1 contrast ratio against the surrounding non-link text color AND at least 4.5:1 against the background. Also check :hover and :focus states for a non-color visual change (underline appearing, outline, background change).
Fix
The simplest fix is to restore text-decoration: underline on inline text links within body copy — this is the most widely understood and color-independent link indicator. If the design requires no underline: calculate the contrast between link color and body text color using the WCAG relative luminance formula; it must be ≥ 3:1. Add a non-color visual change on :hover and :focus (e.g., underline appears, font-weight changes, or background-color is added).
Explain
WCAG 2.1 SC 1.4.1 (Use of Color, Level A) states that color must not be the sole visual means of conveying information, indicating an action, prompting a response, or distinguishing a visual element. For links within text, this means a user who cannot perceive the link color must still be able to identify the link. The WCAG technique G183 specifies that a 3:1 contrast ratio between link and surrounding text, combined with a non-color hover/focus cue, is a sufficient technique. The browser default underline satisfies SC 1.4.1 on its own.
Code Review
Review the rendered markup and interactive states that affect Make links in text blocks visually distinguishable. 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/link-in-text-block
अक्सर पूछे जाने वाले सवाल
लिंक पर अंडरलाइन क्यों ज़रूरी है?
कुछ लोग रंगों में फ़र्क नहीं कर पाते, इसलिए अंडरलाइन साफ़ संकेत देती है कि वह टेक्स्ट एक लिंक है।
क्या यह मेनू के लिंक पर भी लागू होता है?
नहीं। यह स्किल पैराग्राफ़ के भीतर के लिंक के लिए है, नेविगेशन मेनू या बटन जैसे लिंक के लिए नहीं।
क्या मैं अंडरलाइन हटा सकता हूँ?
स्किल इसकी अनुमति तभी देती है जब लिंक का रंग आसपास के टेक्स्ट और बैकग्राउंड से पर्याप्त कॉन्ट्रास्ट रखे।
जानकारी
लेखक का मूल विवरण
Use when applies to hyperlinks (`<a>` elements) that appear inline within paragraphs or text blocks. Does not apply to navigation menus, button-style links, or standalone links that are visually isolated from body text. Use when reviewing CSS that removes text-decoration from inline body copy links.
लोकप्रियता
- GitHub स्टार
- 75k
- रैंकिंग में स्थान
- #2921
- लाइसेंस
- MIT
- अपडेट की गई
- 31/10/2026
कमेंट
- …
इस repository की और skills
frontendchecklist
75kकमांड-लाइन टूल से फ़्रंटएंड कोड और लाइव पेजों को एक्सेसिबिलिटी, स्पीड, SEO और सिक्योरिटी के 380 से ज़्यादा नियमों से जाँचती है।
frontend-checklist-global
75kफ़्रंटएंड प्रोजेक्ट को Front-End Checklist के सभी 386 नियमों से ऑडिट करती है, और हर मिली समस्या का ठोस समाधान देती है।
404-page
75kजाँचती है कि आपका गुम पेज उपयोगी लिंक देता है और सही 404 स्टेटस लौटाता है, ताकि भटके हुए विज़िटर रास्ता ढूँढ सकें।
about-page
75kजाँचती है कि आपकी साइट पर एक साफ़ About पेज है जो बताता है कि उसे कौन चलाता है, ताकि विज़िटर और सर्च इंजन का भरोसा बढ़े।
मिलती-जुलती skills
angular-developer
280kआपके एजेंट को Angular code बनाने और प्रोजेक्ट स्ट्रक्चर पर सलाह देने में मदद करता है। नए प्रोजेक्ट शुरू करने, code के हिस्से बनाने, या performance और accessibility सुधारने में उपयोगी है।
frontend-a11y
280kआपके एजेंट को web interfaces को सबके लिए accessible बनाने में मदद करता है। यह सुनिश्चित करता है कि websites और apps screen readers और keyboard navigation के साथ अच्छे से काम करें।
frontend-patterns
280kआपके एजेंट को React और Next.js में frontend development के modern patterns लागू करने में मदद करता है। यह performance optimize करता है, state manage करता है और best practices फॉलो करवाता है।