Skip to content

Commit

Permalink
Merge pull request civicrm#11054 from omarabuhussein/CRM-21195-improv…
Browse files Browse the repository at this point in the history
…e-menu-item-icons-markup

CRM-21195: Improving menu item icon markup
  • Loading branch information
colemanw authored and sluc23 committed Jan 10, 2018
2 parents 514ef52 + e5dd49b commit 70aa20c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Core/BAO/Navigation.php
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ public static function getMenuName(&$value, &$skipMenuItems) {
}

if (!empty($value['attributes']['icon'])) {
$menuIcon = sprintf('<span class="%s"></span>&nbsp;', $value['attributes']['icon']);
$menuIcon = sprintf('<i class="%s"></i>', $value['attributes']['icon']);
$name = $menuIcon . $name;
}

Expand Down
3 changes: 3 additions & 0 deletions css/civicrmNavigation.css
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ img.menu-item-arrow{
right: 4px;
top: 8px;
}
#civicrm-menu i {
margin-right: 5px;
}
li.menu-separator{
border-bottom: 1px solid #000;
font-size: 0; /* for ie */
Expand Down

0 comments on commit 70aa20c

Please sign in to comment.