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

Center the loader when using before or after slot #23

Closed
devzero0 opened this issue Dec 2, 2018 · 4 comments
Closed

Center the loader when using before or after slot #23

devzero0 opened this issue Dec 2, 2018 · 4 comments
Assignees

Comments

@devzero0
Copy link

devzero0 commented Dec 2, 2018

First off, thanks for this great component! When using the before or after slots, the loader is left aligned with the text. How can it be re-centered on screen? Here is an example JSFiddle that shows the issue.

@ankurk91
Copy link
Owner

ankurk91 commented Dec 2, 2018

Usually, You should handle the CSS for your html. But I will still check your fiddle in my morning

@ankurk91 ankurk91 self-assigned this Dec 2, 2018
@ankurk91
Copy link
Owner

ankurk91 commented Dec 3, 2018

Here is the updated fiddle -
https://jsfiddle.net/8pu0wsL5/4/

Check the css section.

@ankurk91 ankurk91 closed this as completed Dec 3, 2018
@devzero0
Copy link
Author

devzero0 commented Dec 3, 2018

That worked, appreciate your help.

@MohamedHana
Copy link

MohamedHana commented Apr 18, 2020

.vld-icon: {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

This should be default styles for the container. Please update it if possible in the next release.

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

3 participants