Needs review
Project:
Fivestar
Version:
8.x-1.x-dev
Component:
Widgets
Priority:
Minor
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
27 May 2011 at 12:28 UTC
Updated:
28 Jul 2021 at 19:12 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
whiteph commentedMoved to 7.x-2.x as these might be useful
Comment #2
kapil.ropalekar commentedHi rachel_norfolk, whiteph
I have created a patch and added the new thumb widget. Please add my .png files to the thumb widget folder.
Kindly verify the same.
Comment #3
kapil.ropalekar commentedComment #4
tr commentedThere are several problems with the patch, so I'm moving this issue to D8 as that is the version that's currently being developed - all new features should go into the current version first.
The problems are:
After fixing these things the new widget looks like it works, although I haven't examined it in detail - I'll keep using it to see if I notice anything wrong. This patch should work for both D8 AND D7.
Comment #6
tr commentedComment #7
tr commentedComment #8
tr commentedComment #9
tr commentedHere's a new patch that conforms to the new hook_fivestar_widget() format present in Fivestar 8.x-1.0-alpha2 and higher. The patch in #4 should still work for D7.
Comment #10
rivimeyDon't know if there is good reason, but 'div.' has been pointed out as bad for 'overspecifying'.
[also later in file]
Otherwise patch looks ok.
Comment #11
tr commentedYes, the "overqualified" problem is common to every single widget in this module - see the module test output at https://www.drupal.org/pift-ci-job/2131817
I took some time a while ago to make sure all the .css files were consistent with each other. The .css for the thumbs widget follows the same 'template' as all the other widgets.
This module sorely needs a CSS expert to go through the output and our styles and reduce things to only what is necessary. There is a lot of junk in there that has accumulated over the years.
I'm not sure whether we should be adding more widgets into this module or put them into an "extras" module (for example, fivestar_smiley is a module I maintain that provides a new widget).
Comment #12
rivimeyGiven its a common problem, but on the other hand doesn't have a serious downside, I would be pragmatic and shelve the css being not as good as it could be for another time.