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: Fixed incomplete hex alpha value generation #373

Merged
merged 2 commits into from
Oct 5, 2022

Conversation

STiXzoOR
Copy link
Contributor

Summary

Current implementation works great for values greater that 7 but for values below 7 the hex alpha value is missing one extra digit. Fixed that by appending a zero to the value.

Test plan

  • #ffffff -> #ffffff3 (❌)

image

  • #ffffff -> #ffffff03 (✅)

image

STiXzoOR added 2 commits July 17, 2022 23:54
Current implementation works great for values greater that 7 but for values below 7 the hex alpha value is missing one extra digit. Fixed that by appending a zero to the value.
@gregberge gregberge merged commit fd0a097 into styled-components:main Oct 5, 2022
@gregberge
Copy link
Collaborator

Thanks @STiXzoOR

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.

3 participants