Eudz
Eudz

Reputation: 598

ng5-slider - How can we change background-color of slider-active?

I would like to change the background-color of the active pointer ?

Default background-color is #451AFF

In Chrome's inspector I can change it, the class is :

.ng5-slider-active::after { background-color: #451AFF; }

But I can't do the same in my css file.

I tried this but that doesn't seem to work :

::ngdeep {
  .custom-slider .ng5-slider .ng5-slider-pointer .ng5-slider-active::after {
    background-color: #fff!important;
  }
}

Upvotes: 4

Views: 2166

Answers (1)

Eudz
Eudz

Reputation: 598

I finaly found it, if it can help someone

::ngdeep {
  .custom-slider .ng5-slider-active::after {
    background-color: #fff!important;
  }
}

Upvotes: 4

Related Questions