Not a biggie, more of a gotcha. It seemed that the CSS Class specified in the advanced section was not being applied. It transpired that the underscore I'd used had been replaced by a dash:
e.g. "news_feed" replaced by "news-feed"
Took me 3 hours to notice :-(
Comments
Comment #1
samw commentedI'm having the same problem - it's not just in the advanced section; it's also on the format settings for 'row class' when I use the HTML list format.
Strangely though, the 'list class' option doesn't change underscores to hyphens and works as expected.
Just like above, "grid_4" is getting output as "grid-4" in the <li> class and correctly as "grid_4" in the <ul> class.
Any ideas on how to solve this - I can't change the class names as I'm using a CSS grid for layout?
Comment #2
kurapov commentedI've stumbled upon this as well, also using a grid. Check https://drupal.org/node/1371118 for a proposed fix and official position on this issue (i.e. change class names to remove underscores).
Comment #3
akalata commented"Official position" mentioned in #2 is now outdated -- the underscore is a valid CSS class character and should be supported.
In addition to #1371118: Views row class filtering underscore to dash on direct input, see #1109854: Overly aggressive transliteration in drupal_clean_css_identifier removes underscores from classes and #2009584: Allow double underscores to pass through drupal_clean_css_identifier as per new CSS standards.