dequelabs / dequelabs/axe-core

False positive color-contrast: ignore purely decorative text

Open
#4,755 0 comments 0 reactions 0 assignees View on GitHub
color contrast fix high rules support
Dominant language
JavaScript
Stars
7.5k
Forks
933
Avg merge
2d 23h
Merged PRs (30d)
17

Description

Text that is decorational should not need to pass color-contrast. The main problem is figuring out how to detect that text is decorational. Color-contrast purposefully does not exclude hidden elements, so adding `aria-hidden` to the element does not exclude it from running. This is intentional as hidden from screen readers is not the as as hidden from visual users.

We need to figure out how best to either determine the text is decorational or a better way to markup the element to let us know it's decorational.

```html


Decorational text



```

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.