Forgive me if I have missed something in the instructions or UI, but I don't seem to be able to find a way to make my "thumbs up" icon change after voting. It would be nice if there were a CSS class that changed or appeared after voting, and I could attach a different icon to it.

I see in the ~/templates/thumbs-up-down/thumbs.png file that there are icons of different shades, so I assume this contingency was provided for, but I find no way to use both of them.

Thank you for your help.

CommentFileSizeAuthor
#2 thumb-up.patch5.69 KBepifab
#1 rate-thumbs-up.patch2.41 KBepifab
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

epifab’s picture

Issue summary: View changes
FileSize
2.41 KB

I rolled a patch to improve this.
The patch also slightly changes the messages shown for the thumbs up widget and remove the link if the option 'delete_vote_on_second_click' is disabled and the user has already voted.
Hope this will help

epifab’s picture

FileSize
5.69 KB

Sorry there was a problem with the patch #1. Rerolled.

donutdan4114’s picture

Doesn't work for me.. Appears that those classes need to be added into rate_preprocess_rate_template_yesno() and rate_preprocess_rate_template_thumbs_up() functions also.