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

pxToTailwind never returns null #123

Open
allain opened this issue Oct 18, 2024 · 0 comments
Open

pxToTailwind never returns null #123

allain opened this issue Oct 18, 2024 · 0 comments

Comments

@allain
Copy link
Contributor

allain commented Oct 18, 2024

Hello.

I was diving into the code and noticed that pxToTailwind doesn't seem to ever return null but it is documented as possibly returning it.

When round is true, it will find the nearest key in the map and return its value (which is always a string it seems).

When round is false, it will return a string with the exact pixels specified.

If this is corrected, a good number of truthy checks in other conversion functions could likely be removed.

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

No branches or pull requests

1 participant