mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #4496 from stevie-mayhew/pulls/background-image
MINOR: be more specific with background class for menu
This commit is contained in:
commit
0e989e409d
@ -556,7 +556,7 @@ class LeftAndMain extends Controller implements PermissionProvider {
|
|||||||
$icon = Config::inst()->get($class, 'menu_icon', Config::FIRST_SET);
|
$icon = Config::inst()->get($class, 'menu_icon', Config::FIRST_SET);
|
||||||
if (!empty($icon)) {
|
if (!empty($icon)) {
|
||||||
$class = strtolower(Convert::raw2htmlname(str_replace('\\', '-', $class)));
|
$class = strtolower(Convert::raw2htmlname(str_replace('\\', '-', $class)));
|
||||||
return ".icon.icon-16.icon-{$class} { background: url('{$icon}'); } ";
|
return ".icon.icon-16.icon-{$class} { background-image: url('{$icon}'); } ";
|
||||||
}
|
}
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user