axe-core icon indicating copy to clipboard operation
axe-core copied to clipboard

fix(color-contrast): ignore overlapping elements that do not interfere with the background color

Open straker opened this issue 3 years ago • 0 comments

This should drastically decrease the number of overlapping element incompletes axe-core generates, especially for anyone who uses Material Button on their site. I moved findPseudoElement to it's own function so it could be used in both color-contrast-evaluate and calculateObscuringElement.

I also moved getBackgroundStack to the top to match our default export style. The main parts of that file change are the addition of isEmptyElement that goes with the isInlineDescendant check.

Closes issue: #3464

straker avatar Aug 04 '22 16:08 straker