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(inline-loading): shrink spinner radius #4382

Merged

Conversation

asudoh
Copy link
Contributor

@asudoh asudoh commented Oct 18, 2019

Fixes #3040.

Changelog

Changed

  • The stroke radius of the spinner of inline loading.

Testing / Reviewing

Testing should make sure our inline loading component is not broken.

@asudoh asudoh requested a review from a team as a code owner October 18, 2019 08:04
@asudoh asudoh changed the title Spinner radius inline loading fix(inline-loading): shink spinner radius Oct 18, 2019
@netlify
Copy link

netlify bot commented Oct 18, 2019

Deploy preview for the-carbon-components ready!

Built with commit 322db53

https://deploy-preview-4382--the-carbon-components.netlify.com

@netlify
Copy link

netlify bot commented Oct 18, 2019

Deploy preview for carbon-elements ready!

Built with commit 322db53

https://deploy-preview-4382--carbon-elements.netlify.com

@netlify
Copy link

netlify bot commented Oct 18, 2019

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;
Copy link
Member

Choose a reason for hiding this comment

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

it looks like Firefox still does not properly support modifying r with CSS?

Firefox 69 and 71

image

Chrome

image

Copy link
Member

@laurenmrice laurenmrice left a 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

  • small loader under Loading. (its currently using the 20px)
  • inline loading (its currently using the 20px)
  • file uploader (looks correct size, but it is jumping to the left. It should stay in place like the complete and edit states )
    Oct-18-2019 12-09-51

@asudoh asudoh force-pushed the spinner-radius-inline-loading branch from 27e1b13 to 2fd8547 Compare October 21, 2019 08:46
@asudoh
Copy link
Contributor Author

asudoh commented Oct 21, 2019

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.

Copy link
Member

@emyarod emyarod left a 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

@emyarod emyarod changed the title fix(inline-loading): shink spinner radius fix(inline-loading): shrink spinner radius Oct 21, 2019
Copy link
Member

@laurenmrice laurenmrice left a comment

Choose a reason for hiding this comment

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

The only place where it still needs to be update is in Vanilla under File uploader in the upload states example. It still too big here.
Screen Shot 2019-10-21 at 10 43 07 AM

@asudoh
Copy link
Contributor Author

asudoh commented Oct 22, 2019

Thank you for catching that @laurenmrice - Fixed.

Copy link
Member

@laurenmrice laurenmrice left a 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 !👍

Copy link
Contributor

@abbeyhrt abbeyhrt left a 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!

@asudoh asudoh merged commit 18ed97e into carbon-design-system:master Oct 23, 2019
@asudoh asudoh deleted the spinner-radius-inline-loading branch October 23, 2019 22:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Inline loading] Update checkmark icon and loader size
4 participants