From 089c85935810a75597e4cf26c744a09cd302e6b3 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Thu, 12 Nov 2015 16:22:05 -0500 Subject: [PATCH] CRM-16415 - Add space after icon in crmButton --- CRM/Core/Smarty/plugins/block.crmButton.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"; } -- 2.25.1