Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
conditional_class.patch | 646 bytes | smk-ka |
Comments
Comment #2
hamrant CreditAttribution: hamrant at DEWEB Studio, Drupal Ukraine Community, FFW, Open Y for Drupal Ukraine Community commentedLooks good
Comment #3
pifagorDone - http://cgit.drupalcode.org/simple_menu_icons/commit/?id=4483be9
Comment #4
pifagor