From ec9539d0fde6c368e15c0a07ff75f82adba3f36e Mon Sep 17 00:00:00 2001 From: Petr Vobornik Date: Mon, 14 Apr 2014 14:12:14 +0200 Subject: webui: add space between action buttons's icon and text Reviewed-By: Endi Sukma Dewata --- install/ui/ipa.css | 1 + install/ui/src/freeipa/widget.js | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/install/ui/ipa.css b/install/ui/ipa.css index d6f2f367e..a7c5ab8a9 100644 --- a/install/ui/ipa.css +++ b/install/ui/ipa.css @@ -260,6 +260,7 @@ div[name=settings].facet-group li a { .action-button-disabled:hover { color: gray; cursor: default; + text-decoration: none; outline: none; } diff --git a/install/ui/src/freeipa/widget.js b/install/ui/src/freeipa/widget.js index 39b1192ef..d4c9cb366 100644 --- a/install/ui/src/freeipa/widget.js +++ b/install/ui/src/freeipa/widget.js @@ -3979,14 +3979,17 @@ IPA.button = function(spec) { if (spec.type) button.addClass(spec.type); + var label = text.get(spec.label); + if (spec.icon) { $('', { 'class': 'fa '+spec.icon }).appendTo(button); + if (label) label = " " + label ; } - if (spec.label) { - button.append(text.get(spec.label)); + if (label) { + button.append(label); } return button; -- cgit