samedi 5 décembre 2020

Angular ngx-swiper-wrapper arrow style change

I previously created a swiper (ngx-swiper-wrapper) and I changed the color of the arrows the following way:

::ng-deep.swiper-button-next::after, ::ng-deep.swiper-button-prev::after {
      color: $primary-light;
}

Now I created another one on a different page where the color should be black. The problem is when I visit the page with the first swiper and then I navigate to the other page with the second swiper, the color stays the white.

Is there a better way to change the color or a workaround?

Thanks

Aucun commentaire:

Enregistrer un commentaire