Slick: change dots color?

Created on 21 May 2014  路  6Comments  路  Source: kenwheeler/slick

Hi Ken,
Awesome plugin. Any chance for dots color setting?
Tried to change it in the slick-active class with no luck.

Most helpful comment

Per Ken's suggestion:

The dots are webfonts that are done using a psuedo selector on the button. Set the color css property like you would for text on the psuedo selector and you will see the color change.

This is what worked for me:

.slick-dots li button:before {
    color: orange;
  }

All 6 comments

The dots are webfonts that are done using a psuedo selector on the button. Set the color css property like you would for text on the psuedo selector and you will see the color change.

Hi,
I had the same issue and it didn't work just Setting the color css property like you would for text on the psuedo selector .
Instead I added this 2 rules on the li.slick-active:

background-color: transparent;
overflow: hidden;

Per Ken's suggestion:

The dots are webfonts that are done using a psuedo selector on the button. Set the color css property like you would for text on the psuedo selector and you will see the color change.

This is what worked for me:

.slick-dots li button:before {
    color: orange;
  }

If you want a different color for "active" dot

.slick-dots li.slick-active button:before {
    color:orange !important;
}

how to modify dots in my project any way available?

pls sugges me...

The :before does not show up if the dots: true is set alone. What other setting needs to change for this?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

xitongzou picture xitongzou  路  3Comments

NozX18 picture NozX18  路  3Comments

ericestes picture ericestes  路  3Comments

Libig picture Libig  路  3Comments

jeremymandel picture jeremymandel  路  3Comments