The current code blindly assigns a menu-icon-* class to any menu item, whether or not a menu icon has been assigned. Also there is no common class assigned; in order to style multiple menu icons, pattern matching CSS selectors are required.

This patch modifies the behavior to only assign the class if an icon has been assigned, and also adds a common menu-icon class in that case.

CommentFileSizeAuthor
conditional_class.patch646 bytessmk-ka
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

smk-ka created an issue. See original summary.

hamrant’s picture

Status: Needs review » Reviewed & tested by the community

Looks good

pifagor’s picture

Status: Reviewed & tested by the community » Fixed
pifagor’s picture

Status: Fixed » Closed (fixed)