Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change dots color? #245

Closed
shanirel opened this issue May 21, 2014 · 8 comments
Closed

change dots color? #245

shanirel opened this issue May 21, 2014 · 8 comments

Comments

@shanirel
Copy link

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

@kenwheeler
Copy link
Owner

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.

@posi-tiva
Copy link

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;

@radiovisual
Copy link

radiovisual commented Jul 14, 2017

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;
  }

@SebastienGicquel
Copy link

SebastienGicquel commented Jul 10, 2018

If you want a different color for "active" dot

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

@Nageswaran-1997
Copy link

how to modify dots in my project any way available?

pls sugges me...

@MGParisi
Copy link

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

@MaxIbanez
Copy link

Hi !! first... thanks for this tool !!!! jajaja

I need help with this plugin in Angular, how can i change the color dots?
I tried change color from source code and i dont have any changes.
I tried make a new class for slick... and nothing.

Do you have any idea? :(

@bliitzen
Copy link

Hi !! first... thanks for this tool !!!! jajaja

I need help with this plugin in Angular, how can i change the color dots? I tried change color from source code and i dont have any changes. I tried make a new class for slick... and nothing.

Do you have any idea? :(

For Angular - I used SebastianGicquel's solution and put it in the styles.scss file for it to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants