Closed (fixed)
Project:
Facet API
Version:
7.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
17 Dec 2011 at 20:34 UTC
Updated:
9 Jan 2012 at 15:30 UTC
Jump to comment: Most recent file
Comments
Comment #1
cpliakas commentedHi cr0ss.
I'm not sure. This is a code snippet that was adopted from Apache Solr Search Integration, so I would have to check as to why this code is there. Let me bump Peter and check what the purpose of this code is and whether it could be removed.
Thanks,
Chris
Comment #2
cpliakas commentedChanging title for clarity.
Comment #3
cr0ss commentedThank you very much indeed cpliakas. I guess if that code is unnecessary it would be great to remove it, so that any developer could use simple CSS to theme that block.
Comment #4
pwolanin commentedWell, you need some space otherwise the checkbox and link text run together. I think this was Robert's markup originally, but it would seem a non-breaking space is the right thing to use if the checkbox and link are supposed to stay together?
Comment #5
cpliakas commentedRe-setting title.
Comment #6
cpliakas commentedWould something like this work? Instead of padding via a non-breaking space, it pads via CSS. Or is there some accessibility reason why a non-breaking space would be better?
Comment #7
cr0ss commentedcpliakas, I agree with your patch. Removing hardcoded space and adding CSS gives users more flexibility to set specific spacing between checkbox and label they want.
Comment #8
pwolanin commentedDoes that work? It would seem you need to use class facetapi-checkbox-processed
Comment #9
cpliakas commentedIt does because the margin is being applied to the checkbox that is added via JS which has the
facetapi-checkboxclass. The original link has thefacetapi-checkbox-processedclass which the CSS in the patch is not acting on. An example of the markup in a list item is copied below:Comment #10
cpliakas commentedMarking as RTBC. I am going to let this sit a few days in case anyone has any further objections.
Comment #11
cpliakas commentedCommitted at http://drupalcode.org/project/facetapi.git/commit/3ce2027.