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

transparentize - float numbers to 2 decimals #548

Closed
sandrina-p opened this issue Oct 16, 2020 · 1 comment
Closed

transparentize - float numbers to 2 decimals #548

sandrina-p opened this issue Oct 16, 2020 · 1 comment
Labels

Comments

@sandrina-p
Copy link

  • polished version: 4.0.2

Mixin/Helper/Shorthand Usage

// It happens with any color actually
transparentize(0.55, '#01B0BB') // rgba(1,176,187,0.44999999999999996)

What You Are Seeing

The output is rgba(1,176,187,0.44999999999999996)

What You Expected To See

The output to be rgba(1,176,187,0.45)

Reproduction

https://codesandbox.io/s/polished-transparentize-055-bug-dm3o7

bhough added a commit that referenced this issue Nov 21, 2020
Ensures transparentize alpha values are floated 2 decimals.

fix #548
@bhough bhough mentioned this issue Nov 21, 2020
@bhough bhough closed this as completed in 063c85d Nov 21, 2020
@bhough
Copy link
Contributor

bhough commented Nov 21, 2020

@sandrina-p This has been addressed in v4.0.4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants