From: Coleman Watts Date: Thu, 12 Nov 2015 21:22:05 +0000 (-0500) Subject: CRM-16415 - Add space after icon in crmButton X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=089c85935810a75597e4cf26c744a09cd302e6b3;p=civicrm-core.git CRM-16415 - Add space after icon in crmButton --- diff --git a/CRM/Core/Smarty/plugins/block.crmButton.php b/CRM/Core/Smarty/plugins/block.crmButton.php index 4833e7934a..1efef99bfe 100644 --- a/CRM/Core/Smarty/plugins/block.crmButton.php +++ b/CRM/Core/Smarty/plugins/block.crmButton.php @@ -53,10 +53,10 @@ function smarty_block_crmButton($params, $text, &$smarty) { } // Always add class 'button' - fixme probably should be crm-button $params['class'] = empty($params['class']) ? 'button' : 'button ' . $params['class']; - // Any jQuery-UI icon works + // Any FA icon works $icon = CRM_Utils_Array::value('icon', $params, 'pencil'); // All other params are treated as html attributes CRM_Utils_Array::remove($params, 'icon', 'p', 'q', 'a', 'f', 'h', 'fb', 'fe'); $attributes = CRM_Utils_String::htmlAttributes($params); - return " $text"; + return "  $text"; }