Merge pull request #10358 from JMAConsulting/CRM-20575
[civicrm-core.git] / js / jquery / jquery.crmIconPicker.js
index 885d1b2b88c7143d00db04d28ce2968a52a7e2fe..8fce94267fc2500c39f70309d862e10bb4ef6217 100644 (file)
@@ -27,7 +27,7 @@
       }
 
       var $input = $(this),
-        $button = $('<a href="#" />').button().attr('title', $input.attr('title')),
+        $button = $('<a class="crm-icon-picker-button" href="#" />').button().removeClass('ui-corner-all').attr('title', $input.attr('title')),
         $style = $('<select class="crm-form-select"></select>'),
         options = [
           {key: 'fa-rotate-90', value: ts('Rotate right')},
@@ -46,7 +46,7 @@
         $style.toggle(!!split[0]).val(split[1] || '');
       }
 
-      $input.hide().addClass('iconpicker-widget').after($style).after($button).change(formatButton);
+      $input.hide().addClass('iconpicker-widget').after($style).after('&nbsp;').after($button).change(formatButton);
 
       CRM.utils.setOptions($style, options, ts('Normal'));