I just noticed that the CSS selector for block-commerce-cart-cart (module commerce_cart) is "#block-commerce_cart-cart .block-icon [..]" and it obviously doesn't work.
In my opinion the style should be built like this: in block_icons.module
Line 439: $css = '#'. $block_icon['block_html_id'] .' .block-icon {
Function block_icons_preprocess_block can find the block html id in $variables['block_html_id'] and add it to the $block_icon array.
I did a quick test on my system, it works.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | block_icons-fixing_wrong_css_id_selector-1789182-4.patch | 1.02 KB | jardasmahel |
| #1 | cssidselector-1789182-1.patch | 1.36 KB | daffodilsoftware |
Comments
Comment #1
daffodilsoftware commentedHi tito
You were right that this issue existed and the solution that you proposed is also working and fine so I have created a patch for the same and attaching it here.
Comment #2
daffodilsoftware commentedComment #3
daffodilsoftware commentedComment #4
jardasmahel commentedPatch before didn't worked for me. Probably it is for older version of module so i made new one.
Comment #5
daffodilsoftware commentedJardasmahel ,You are right that the patch I wrote was for dev branch. So I will port the changes to both branch soon.
Comment #6
radimklaskaI tested patch in #4 against 7.x-1.2. Works fine. Thanks!
Comment #7
daffodilsoftware commentedHello Jardasmahel, I have committed cssidselector-1789182-1.patch on dev branch. I tried to commit your patch on 7.x-1.x-dev and 7.x-1.2 but this is giving error. Here is the error description:
Comment #8
Anonymous (not verified) commentedcommitted dc317bd and fixed in 7.x-1.3.Thanks !
Comment #9
Anonymous (not verified) commented