Skip to main content
Checks that links in text blocks are visually distinguishable
Rule IDa11y/link-in-text-block
CategoryAccessibility
ScopePer-page
Severitywarning
Weight4/10

Solution

Links within text blocks must be distinguishable by more than just color (for color-blind users). Use underlines, bold, borders, or other visual indicators. Exception: Links can rely on color alone if the contrast ratio between link and surrounding text is at least 3:1 and you provide additional cues on hover/focus.

Enable / Disable

Disable this rule

squirrel.toml
[rules]
disable = ["a11y/link-in-text-block"]

Disable all Accessibility rules

squirrel.toml
[rules]
disable = ["a11y/*"]

Enable only this rule

squirrel.toml
[rules]
enable = ["a11y/link-in-text-block"]
disable = ["*"]