webui: add space between action buttons's icon and text

Reviewed-By: Endi Sukma Dewata <edewata@redhat.com>
This commit is contained in:
Petr Vobornik 2014-04-14 14:12:14 +02:00
parent c7af245809
commit ec9539d0fd
2 changed files with 6 additions and 2 deletions

View File

@ -260,6 +260,7 @@ div[name=settings].facet-group li a {
.action-button-disabled:hover { .action-button-disabled:hover {
color: gray; color: gray;
cursor: default; cursor: default;
text-decoration: none;
outline: none; outline: none;
} }

View File

@ -3979,14 +3979,17 @@ IPA.button = function(spec) {
if (spec.type) button.addClass(spec.type); if (spec.type) button.addClass(spec.type);
var label = text.get(spec.label);
if (spec.icon) { if (spec.icon) {
$('<i/>', { $('<i/>', {
'class': 'fa '+spec.icon 'class': 'fa '+spec.icon
}).appendTo(button); }).appendTo(button);
if (label) label = " " + label ;
} }
if (spec.label) { if (label) {
button.append(text.get(spec.label)); button.append(label);
} }
return button; return button;