I am using the vue-slick-carousel package in Vue js app i want to change slider dots styles change color, background, width, height and so on how can i achieve this? here is my code
<VueSlickCarousel :arrows="false" :dots="true" :slidesToShow="3">
<div class="medium_rectangle">1</div>
<div class="medium_rectangle">2</div>
<div class="medium_rectangle">3</div>
<div class="medium_rectangle">4</div>
</VueSlickCarousel>
Here's what currently sets those values:
Be weary the specificity of selectors currently setting those values is rather high. For example, in the case of the active dot opacity, it's
4 x classes + 2 x element(example:.slick-slider[data-v-aa003c28] .slick-dots .slick-active button:before).I typically use an
1 x :not(#id)to override those (overrides without using!important).Example SCSS (needs parsing!) which would apply:
Ends up like this:
Note: I'm not telling you how to fight your own CSS specificity wars, I'm only showing you how I typically fight mines. Others use
!important, others like to match the exact current specificity for each rule they override.You do your own thing.