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(mix): return valid colors with transparent values at weight extremes #409

Merged
merged 5 commits into from
Jan 2, 2022
Merged

fix(mix): return valid colors with transparent values at weight extremes #409

merged 5 commits into from
Jan 2, 2022

Conversation

delucis
Copy link
Contributor

@delucis delucis commented Jan 1, 2022

Fixes #408

Updates the algorithm to correctly handle these edge cases based on the current dart-sass implementation: https://github.com/sass/dart-sass/blob/169178af6c6414d01bc66144b437701057ff3684/lib/src/functions/color.dart#L800-L838

@delucis delucis marked this pull request as ready for review January 1, 2022 17:02
@codecov
Copy link

codecov bot commented Jan 1, 2022

Codecov Report

Merging #409 (aa6dd71) into main (8acf0f4) will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #409      +/-   ##
==========================================
+ Coverage   96.42%   96.44%   +0.01%     
==========================================
  Files          23       23              
  Lines         196      197       +1     
  Branches       42       44       +2     
==========================================
+ Hits          189      190       +1     
  Misses          7        7              
Impacted Files Coverage Δ
src/mix.ts 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8acf0f4...aa6dd71. Read the comment docs.

@ricokahler ricokahler merged commit ed9febe into ricokahler:main Jan 2, 2022
@github-actions
Copy link

github-actions bot commented Jan 2, 2022

🎉 This PR is included in version 1.2.5 🎉

The release is available on:

Your semantic-release bot 📦🚀

@delucis delucis deleted the delucis/fix/mix-transparent branch January 2, 2022 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

mix returns NaN values at extremes with fully transparent colors
2 participants