Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(color-contrast): correctly handle nested scroll regions #3212

Merged
merged 2 commits into from Oct 15, 2021

Conversation

straker
Copy link
Contributor

@straker straker commented Oct 14, 2021

The code checked the cache of the direct parent first instead of checking if the parent was itself a scroll region, causing the code to skip the parent if it was scroll region and instead use the next level up scroll region. This means that the code ignored the background from the parent scroll region and used the next level up scroll regions background (causing all the false positives).

Closes issue: #2728

@straker straker requested a review from a team as a code owner October 14, 2021 16:14
@straker straker merged commit 22db29c into develop Oct 15, 2021
@straker straker deleted the nested-scroll-region branch October 15, 2021 15:05
straker added a commit that referenced this pull request Oct 18, 2021
* fix(color-contrast): correctly handle nested scroll regions

* revert changes from previous pr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants