How to change the colour of the Slider Pager Dots?

Using the Ionic Slide Box delegate, produces Slider Pager Dots on the bottom. How can I change the color of the active and inactive ones?

I have found that you can use:

.slider-pager {
  background: #000;
}

to change the background, but this does not change the dots.

1 Like

try

.slider-pager 
{
 color: #000;
}
.slider-pager-page.active
{
color: #f90;
}

as you’re styling a font (svg)

If that doesnt work try

fill: #f90;

and

stroke: #9f0;

for a border around them :smile:

Thanks a lot, that worked for filling the active dot. Do you perhaps now how to fill the not active dots as well?
Thanks!

.slider-pager-page 
{
 stroke: #9f0 !important;
}

This ^

.slider-pager-page.active
{
stroke: #f90 !important;
}

Here :smile:

1 Like

Thanks! But it didnt work :frowning:

.slider-pager .slider-pager-page 
{
stroke: #9f0 !important;
}

Any Luck?

worked! thanks a lot

Is there a way to add a white border to each pager dots (active or not)?

This could be usefull because sometime the displayed picture can have the same color as the pager dot :frowning:

Seems straightforward, just apply border: 2px solid white, is that not working?

1 Like

It works and looks very good.

just an update, the current class for the bullets is “.swiper-pagination-bullet”

1 Like

For Ionic 3.4

.swiper-pagination-bullet-active {
background: red;
opacity: 1;
}

5 Likes
 .swiper-pagination-bullet-active{
    background: color($colors, secondary) !important;
    opacity: 1;
  }
4 Likes