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

Button icon background rotates with loading icon #916

Closed
vinz243 opened this issue Jun 30, 2014 · 4 comments
Closed

Button icon background rotates with loading icon #916

vinz243 opened this issue Jun 30, 2014 · 4 comments

Comments

@vinz243
Copy link

vinz243 commented Jun 30, 2014

Hi,
My code:

<div class="ui labeled icon basic small button">
    <i class="loading icon"></i> Please wait...
</div>

Result:
problem

How to solve that?

@jlukic
Copy link
Member

jlukic commented Jul 1, 2014

http://jsfiddle.net/4ARMH/

You can nest icons inside of ui labeled icon, this will prevent the padded one from spinning. A little css will reduce the implicit margin on the right side of the icon.

.labeled.button .loading.icon {
    margin: 0em;
}

@jlukic jlukic closed this as completed Jul 1, 2014
@vinz243
Copy link
Author

vinz243 commented Jul 1, 2014

OK, thank you!

@domialex
Copy link

This solution doesn't work anymore, the icon is not centered vertically. What would be the correct way to do this?

@lubber-de

This comment was marked as spam.

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

No branches or pull requests

4 participants