vue2-loading-bar icon indicating copy to clipboard operation
vue2-loading-bar copied to clipboard

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

Open cjmyles opened this issue 7 years ago • 1 comments

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.

cjmyles avatar Sep 25 '17 05:09 cjmyles

Hi @cjmyles, how about custom css?

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

BosNaufal avatar Oct 03 '17 00:10 BosNaufal