dequelabs / dequelabs/axe-core

link-in-text-block should consider surrounding node for color contrast

Open
#4,167 1 comment 1 reaction 0 assignees View on GitHub
rules
Dominant language
JavaScript
Stars
7.5k
Forks
933
Avg merge
2d 23h
Merged PRs (30d)
17

Description

At the moment, Link-in-text-block only looks at the parent block element's background and foreground color when it tries to determine the 3:1 contrast. It should also look at the surrounding text to determine that contrast. For example:

```html


While on the road to my home of sweet Athy

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.