-
Notifications
You must be signed in to change notification settings - Fork 275
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
Conversation
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.
hi @maco, what effect does adding this have on the loader when |
Content-box is the default in all non-Microsoft browsers and in Microsoft
ones after…IE9, IIRC. Your code expects the browsers to be doing their
default thing. Tailwind is behaving like a reset rule.
--
Mackenzie Morgan
(she/her)
|
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. |
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:
|
I checked out the changes. looks good for all browsers. |
There was a problem hiding this 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.
This is released in |
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.