dequelabs / dequelabs/axe-core

Space in text is causing failure in color-contrast test

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

Description

### Product

axe-core

### Product Version

4.9.0

### Latest Version

- [X] I have tested the issue with the latest version of the product

### Issue Description

#### Expectation
I expect te return of the failing elements.

#### Actual
It throws the following error: `Error: Cannot read properties of undefined (reading 'getCellFromPoint')`

#### How to Reproduce
By running the mobile lighthouse on https://www.custtom.com/ you'll see the same error come up under accessibility.

#### Additional context
It only returns an error when in the mobile menu you press a sub menu (products for example) and then if those li elements contain words with spaces it returns the error in lighthouse. If I put a single word there it will return as expected.
Additionally I did not see this error with the axe extension.

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.