How to change rating star color to yellow

Post Reply
techgeek
Posts: 38
Joined: 07 Sep 2018, 20:37

30 Oct 2018, 06:53

Hi

I am using California blue theme so rating stars (<p:rating/>) displaying in blue color, but I need them in yellow. I've tried to put style attribute but no luck, please let me know.

Thanks in advance.

User avatar
aragorn
Posts: 3206
Joined: 29 Jun 2013, 12:38

30 Oct 2018, 17:15

Please try;

Code: Select all

body .ui-rating .ui-rating-star-on a {
          color: yellow;
 }
Maybe, you can add this code into _theme_styles.scss file then, you can provide new css using SASS command.

Best Regards,

techgeek
Posts: 38
Joined: 07 Sep 2018, 20:37

30 Oct 2018, 19:47

thanks that worked :) I kept it in layout-blue.css

User avatar
aragorn
Posts: 3206
Joined: 29 Jun 2013, 12:38

31 Oct 2018, 08:05

Glad to hear, thanks a lot for the update!

Post Reply

Return to “California - PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest