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

Adding a custom class prevents the bar showing red in error mode #6

Open
cjmyles opened this issue Sep 25, 2017 · 1 comment
Open

Comments

@cjmyles
Copy link

cjmyles commented Sep 25, 2017

I added a custom class to the HTML:

<loading-bar
    custom-class="custom-class"
    ...

Then set the error mode in the JS:

this.error = true;

The loading bar appears, but in green not red. Without the custom class there is no issue.

@BosNaufal
Copy link
Owner

Hi @cjmyles, how about custom css?

.CustomClass.LoadingBar--error {
   background: red;
}

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

2 participants