Closed (fixed)
Project:
Colors
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Feb 2012 at 15:36 UTC
Updated:
1 Oct 2012 at 04:01 UTC
The code that generates the CSS-file for OG colors creates selectors for class names like "colors-og-1", "colors-og-2" etc.
The code that generates the actual classes on the elements generates classes like "colors-og1", "colors-og2" etc. so the CSS rules are not applied.
I don't uderstand the color module's code (there's so much going on implicitly and "magically" via ctools), and I couldn't find the place where the names are generated, but I think I found the code that generates the classes to be used in the element. For some obscure reason the names are generated with underscores instead of dashes, but in the output the classes come out with dashes. However, this patch seems to work.
| Comment | File | Size | Author |
|---|---|---|---|
| 0001-Fix-classname-generation-for-elements-which-are-colo.patch | 897 bytes | Peter Bex |
Comments
Comment #1
aspilicious commentedNot tested it but I'm prety sure this fix is correct
Comment #2
tim.plunketthttp://drupalcode.org/project/colors.git/commit/ba3d8a2
Thanks!