Problem/Motivation

Hover effect was added to the Fivestar voting by #2980108: Add hover effect to the Fivestar voting. It works great. However, when the Fivestar widget uses AJAX, hover efect does not work after undo voting.

Steps to reproduce:

  1. Place the mouse cursor on the Fivestar element. Hover effect works.
  2. Vote for any number of stars (less than 5).
  3. Undo vote.
  4. Place the mouse cursor on the Fivestar element. Hover effect does not work.
CommentFileSizeAuthor
#4 rate-hover_effect_not_work-3063463-4.patch422 byteslamp5

Comments

Krzysztof Domański created an issue. See original summary.

lamp5’s picture

Status: Active » Needs review

Yes, it is true. It is caused by the CSS definition.
We will change this:

.rate-widget-fivestar ul li.hovering > * {
  background: url(../images/fivestar.png) no-repeat 0 -16px;
}

however, form the accessibility side, when we can not do any action on fivestar element (after voted we can only undo our vote), we do not need any hover effect.

krzysztof domański’s picture

Title: Hover effect to the Fivestar voting not working after AJAX callback » Hover effect on Fivestar does not work after undo the vote when AJAX enabled
Issue summary: View changes
Status: Needs review » Needs work

This is another problem. Hover effect does not work after undo the vote when AJAX enabled. I changed the issue summary. Sorry...

lamp5’s picture

Status: Needs work » Needs review
StatusFileSize
new422 bytes

The problem is that you want to find li selectors in context but response context is the only li without the wrapper

krzysztof domański’s picture

Status: Needs review » Fixed

Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.