-
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
Loading spinner size shrinked a lot #7946
Comments
related: #5367 the new sizes are according to our component spec and appear like this: are you applying styles on top of the base Carbon styles? |
We use the Vanilla Carbon example from https://the-carbon-components.netlify.app/?nav=inline-loading
Same for the loading indicator (not inline). No additional styles on top, except for the one above (style="width: 2rem;height: 2rem;") to work around this issue. |
It looks like we need to update the vanilla
<svg class="{{@root.prefix}}--loading__svg" viewBox="0 0 100 100">
<circle class="{{@root.prefix}}--loading__background" cx="50%" cy="50%" r="42" />
<circle class="{{@root.prefix}}--loading__stroke" cx="50%" cy="50%" r="42"/>
</svg>
<svg class="{{@root.prefix}}--loading__svg" viewBox="0 0 100 100">
<title>Loading</title>
{{#if small}}
<circle class="{{@root.prefix}}--loading__background" cx="50%" cy="50%" r="42" />
<circle class="{{@root.prefix}}--loading__stroke" cx="50%" cy="50%" r="42" />
{{else}}
<circle class="{{@root.prefix}}--loading__stroke" cx="50%" cy="50%" r="44" />
{{/if}}
</svg> Verified locally, can push up a PR if needed @emyarod |
I found that since the merge of #7447 the size of the loading and inline loading indicator is much smaller. Before it was:
Now it is:
In our application the new sizes look quite weird. We downloadd the styles from here: https://unpkg.com/browse/carbon-components@10.28.0/css/
Here a sample of how weird it looks in our application:
The text was updated successfully, but these errors were encountered: