---
title: "Links in text are distinguished only by color (a11y/link-in-text-block)"
description: "a11y/link-in-text-block: If links inside a paragraph differ from the text only by color, people with low vision or color blindness cannot find them (WCAG…"
canonical: https://void-design.vercel.app/rules/a11y/link-in-text-block
lastModified: 2026-09-16
---

# Links in text are distinguished only by color

`a11y/link-in-text-block` · severity **warn** · category Accessibility · detected by `void a11y` and `void audit`

## Why it matters

If links inside a paragraph differ from the text only by color, people with low vision or color blindness cannot find them (WCAG 1.4.1).

## How to fix it

Underline inline links, or add another non-color cue such as weight plus a 3:1 contrast difference with the surrounding text.

## Example

```
p a { text-decoration: underline; text-underline-offset: 0.2em; }
```

## References

- https://dequeuniversity.com/rules/axe/4.13/link-in-text-block

## More accessibility rules

`void a11y` reports 48 rules in this category. WCAG 2.2 AA through axe-core, plus checks axe can't do alone: visible keyboard focus, 24/44px target size on mobile, 320px reflow and disabled zoom.

- `svg-img-alt` SVG image has no text alternative — [a11y/svg-img-alt](https://void-design.vercel.app/rules/a11y/svg-img-alt)
- `role-img-alt` role="img" element has no text alternative — [a11y/role-img-alt](https://void-design.vercel.app/rules/a11y/role-img-alt)
- `tabindex` Positive tabindex — [a11y/tabindex](https://void-design.vercel.app/rules/a11y/tabindex)
- `scrollable-region-focusable` Scrollable region is not keyboard accessible — [a11y/scrollable-region-focusable](https://void-design.vercel.app/rules/a11y/scrollable-region-focusable)
- `autocomplete-valid` Invalid autocomplete value — [a11y/autocomplete-valid](https://void-design.vercel.app/rules/a11y/autocomplete-valid)
- `meta-viewport` Zooming is disabled — [a11y/meta-viewport](https://void-design.vercel.app/rules/a11y/meta-viewport)
- `bypass` No way to skip repeated content — [a11y/bypass](https://void-design.vercel.app/rules/a11y/bypass)
- `video-caption` Video has no captions — [a11y/video-caption](https://void-design.vercel.app/rules/a11y/video-caption)

Detected by `void a11y` and `void audit`. Explain it in a terminal: `void rules a11y/link-in-text-block`
