-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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(inline-loading): shrink spinner radius #4382
fix(inline-loading): shrink spinner radius #4382
Conversation
Deploy preview for the-carbon-components ready! Built with commit 322db53 https://deploy-preview-4382--the-carbon-components.netlify.com |
Deploy preview for carbon-elements ready! Built with commit 322db53 |
Deploy preview for carbon-components-react failed. Built with commit 322db53 https://app.netlify.com/sites/carbon-components-react/deploys/5db0d82b33ad5000086ad28c |
.#{$prefix}--loading__background, | ||
.#{$prefix}--loading__stroke { | ||
// Ensures (r * 2 + (stroke width)) / (viewbox unit size) * (viewbox pixel size) === 14 | ||
r: 26.8125; |
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.
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.
The 16px loader should be used in three different places:
Vanilla
- small loader under Loading. (its currently using the 20px)
- inline loading (currently seems to be getting extra padding than the success icon)
- file uploader (looks correct)
React
27e1b13
to
2fd8547
Compare
Thank you for reviewing @laurenmrice - Updated the right padding for file uploader as well as the size for small loading and inline loading. I tried to make the spinner the size the same as complete/invalid icon (to get the same padding as them), but please let me know if a larger size is desired. |
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.
Firefox issue is resolved, looks good to me pending design approval
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.
Thank you for catching that @laurenmrice - Fixed. |
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.
looks good, thank you !👍
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.
Looks good to me!
Fixes #3040.
Changelog
Changed
Testing / Reviewing
Testing should make sure our inline loading component is not broken.