Closed (fixed)
Project:
Ridiculously Responsive Social Sharing Buttons
Version:
8.x-2.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 Oct 2019 at 15:12 UTC
Updated:
4 Dec 2019 at 15:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
adamps commentedThanks for the report, patches welcome
Comment #3
ptmkenny commentedOk, I dug into this, and the code causing the issue is this:
This differs slightly from the example given in the extlink api docs:
But, I changed the code to match the Extlink API example and I still ran into an issue, so I reported that in the external link issue queue. I'll try to get that fixed first and then return to this.
Comment #4
owenbush commentedHere is a patch to fix this issue.
The underlying issue here is that there is an assumption that there are excluded CSS selectors set. If there are any set, then the code as is written works fine. However, if there are none then what you end up with is a selector like so:
And that is an invalid selector. So what the patch does is first check that the excluded CSS selectors setting has any value, if it does not, then just set the value to ".rrssb-buttons", if it does, then append ", .rrssb-buttons" to the end of it.
Marking this as needs review.
Comment #5
adamps commentedThanks @owenbush that makes sense to me.
@ptmkenny it would be great if you could confirm that this patch fixes your problem.
Comment #6
ptmkenny commentedI can confirm applying the patch fixes the issue-- the icon is now displayed properly.
Comment #8
adamps commented