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

Make the box-sizing explicit on the MoonLoader circle #162

Merged
merged 2 commits into from
May 2, 2020

Conversation

maco
Copy link
Contributor

@maco maco commented Feb 14, 2020

Recent versions of Tailwind CSS force everything to box-sizing: border-box;
(see tailwindlabs/tailwindcss#1111 )
Tailwind isn't the only thing out there using that hack, so this is sure to be a wider-ranging problem.
The result of using Tailwind & react-spinners in the same project without this change is that the spinner circle wobbles around.

Recent versions of Tailwind CSS force everything to `box-sizing: border-box;`
(see tailwindlabs/tailwindcss#1111 )
Tailwind isn't the only thing out there using that hack, so this is sure to be a wider-ranging problem.
The result of using Tailwind & react-spinners in the same project without this change is that the spinner circle wobbles around.
@davidhu2000
Copy link
Owner

hi @maco, what effect does adding this have on the loader when tailwindcss isn't used?

@maco
Copy link
Contributor Author

maco commented Feb 16, 2020 via email

@davidhu2000
Copy link
Owner

ah i see. @maco thanks for the change. I'll review once i get a chance to. Can you also update snapshots? Otherwise the tests will fail.

@stan-sack
Copy link

would love to see this in master. You cant override this using the override method from the docs so it becomes troublesome to fix. Right now im using a css wildcard which is far less than ideal:

[class*="css-"] {
    box-sizing: content-box;
}

@davidhu2000
Copy link
Owner

I checked out the changes. looks good for all browsers.

Copy link
Owner

@davidhu2000 davidhu2000 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Going to merge this and then update the snapshots.

@davidhu2000 davidhu2000 merged commit ff28caf into davidhu2000:master May 2, 2020
davidhu2000 added a commit that referenced this pull request May 2, 2020
@davidhu2000
Copy link
Owner

This is released in 0.8.2

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.

None yet

3 participants