link-in-text-block
Was er macht
Dieser Skill prüft Links im Fließtext und stellt sicher, dass sie optisch klar sind, meist durch eine Unterstreichung. Er ist für Designer und Frontend-Entwickler gedacht, denen Barrierefreiheit wichtig ist.
Wann du ihn nutzt
- ✓Wenn du den Agenten bittest, die Gestaltung von Links in Artikeln oder Absätzen zu prüfen.
- ✓Wenn ein Design Unterstreichungen von Links entfernt und du prüfen willst, ob sie trotzdem gut sichtbar sind.
- ✓Wenn du eine Seite für eine Barrierefreiheits-Prüfung vorbereitest und sicherstellen willst, dass Links nicht nur über ihre Farbe erkennbar sind.
Link zum Skill
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/link-in-text-block/SKILL.mdKopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.
So nutzt du ihn
Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.
Fertige Nachricht zum Einfügen
Für Claude Code, Codex oder Cursor: Führe den Befehl in deinem Projektordner aus, dann wird der Skill installiert.
Lade die SKILL.md herunter und lege sie in den Skills-Ordner deines Agenten.
Beispielanfrage an deine KI
“Kannst du prüfen, ob die Links in meinen Blogbeiträgen sich gut vom restlichen Text abheben?”
5 neue Skills pro Woche. 1 Minute Lesezeit.
So funktioniert es
Dein Agent schaut sich die Link-Gestaltung in Textblöcken an und prüft, ob es eine Unterstreichung oder genug Farbkontrast gibt. Dann meldet er Links, die übersehen werden könnten, und schlägt eine Lösung vor.
Technischer Inhalt (originale SKILL.md)
Originaltext des Autors, auf Englisch, direkt von 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
Häufige Fragen
Warum brauchen Links Unterstreichungen?
Manche Menschen können Farben nicht unterscheiden. Eine Unterstreichung zeigt ihnen klar, dass Text ein Link ist.
Gilt das auch für Menü-Links?
Nein. Der Skill betrifft Links innerhalb von Absätzen, nicht Navigationsmenüs oder Links im Button-Stil.
Darf ich die Unterstreichungen entfernen?
Der Skill erlaubt das nur, wenn die Linkfarbe genug Kontrast zum umgebenden Text und Hintergrund hat.
Details
Originalbeschreibung des Autors
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.
Beliebtheit
- GitHub-Sterne
- 75k
- Platz im Ranking
- #2921
- Lizenz
- MIT
- Aktualisiert
- 31.10.2026
Kommentare
- …
Weitere Skills aus diesem Repository
frontendchecklist
75kPrüft Frontend-Code und Live-Seiten anhand von über 380 Regeln zu Barrierefreiheit, Geschwindigkeit, SEO und Sicherheit, mit einem Kommandozeilenwerkzeug.
frontend-checklist-global
75kPrüft ein Frontend-Projekt gegen alle 386 Regeln der Front-End Checklist und gibt für jedes gefundene Problem eine konkrete Lösung.
404-page
75kPrüft, ob deine Seite für fehlende Adressen hilfreiche Links anbietet und einen echten 404-Statuscode zurückgibt, damit verirrte Besucher ihren Weg finden.
about-page
75kPrüft, ob deine Website eine klare Über-uns-Seite hat, die erklärt, wer sie betreibt, um Vertrauen bei Besuchern und Suchmaschinen aufzubauen.
Ähnliche Skills
angular-developer
280kHilft deinem Agenten bei Angular-Code und gibt Tipps zur Projektstruktur. Nützlich für neue Projekte, einzelne Code-Teile sowie Performance und Barrierefreiheit.
frontend-a11y
280kHilft deinem Agenten, Weboberflächen für alle zugänglich zu machen. Sorgt dafür, dass Websites und Apps gut mit Screenreadern und Tastaturnavigation funktionieren.
frontend-patterns
280kLässt deinen Agenten moderne Muster in der Frontend-Entwicklung anwenden. Optimiert Performance, verwaltet State und folgt Best Practices für React und Next.js.