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

Allow ensureContrastRatio to change luminance the other way #3806

Merged
merged 1 commit into from
May 13, 2022

Conversation

Tyriar
Copy link
Member

@Tyriar Tyriar commented May 13, 2022

The higher ratio of the two results will be picked.

Fixes #3720


Dark selection on dark foreground with ratio of 6:

image

Light selection on light foreground with ratio of 6:

image

The higher ratio of the two results will be picked.

Fixes xtermjs#3720
@Tyriar Tyriar added this to the 4.19.0 milestone May 13, 2022
@Tyriar Tyriar requested a review from meganrogge May 13, 2022 18:21
@Tyriar Tyriar self-assigned this May 13, 2022
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.

Allow minimum contrast ratio to go in both directions if needed
2 participants