The module works fine in nodes, but I cannot get the color to appear when used in Views/ block. If there additional configuration needed? Thank you.

Comments

sioux created an issue.

justcaldwell’s picture

Thanks for raising the issue!

Thus far, Style Selector is very focused on adding the necessary class or color style to the entity element. So, if your view is displaying 'Content' rather than 'Fields'—i.e., rows of rendered entities—with a view mode that has the Style Selector field and formatter configured, that should work. (Sorry, I'm not in a position to test at the moment.)

If your view displays 'Fields', it seems possible we could apply the style selector info to the view result row, but that isn't currently a feature.

Can you provide more detail on what you're trying to accomplish?