nashio / star-rating-svg

A star rating jQuery plugin that uses SVG for easier customization
http://nashio.github.io/star-rating-svg/demo
MIT License
355 stars 156 forks source link

why doesn't "activeColor" work ? #32

Open ytche opened 6 years ago

ytche commented 6 years ago

i want to let activeColor to be "#555#.but after i change the option,the star's still be gold.

  $(".test-rating").starRating({
  initialRating: 4,
  disableAfterRate: false,
  strokeColor: "black",
  emptyColor:"white",
  ratedColor:"#555",
  hoverColor: '#555',
  activeColor: '#555',
  strokeWidth: 10,
  starSize: 15
});
<div class="test-rating"></div>
nashio commented 6 years ago

there must be another location in your code that is changing it. Can you share your file?

Anima-ana commented 5 years ago

I have this problem too. I dont find what obstruct ActiveColor in my stars, but i use css that to appoint my color in stars

.my-rating-stars-class polygon[class*="svg-active-"] {
    fill: #e92526!important;
}