From ef707d89f27889d920245ed1d3fe7fd609bfb1ab Mon Sep 17 00:00:00 2001 From: Sami Mokaddem Date: Fri, 8 Oct 2021 16:53:00 +0200 Subject: [PATCH] fix: [helpers:bootstrap] UI issue in button Buttons with icon should have margin only if they contain text --- src/View/Helper/BootstrapHelper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/View/Helper/BootstrapHelper.php b/src/View/Helper/BootstrapHelper.php index 287696f..08093de 100644 --- a/src/View/Helper/BootstrapHelper.php +++ b/src/View/Helper/BootstrapHelper.php @@ -909,7 +909,7 @@ class BoostrapButton extends BootstrapGeneric { { if (!empty($this->options['icon'])) { $bsIcon = new BoostrapIcon($this->options['icon'], [ - 'class' => [(!empty($this->options['title']) ? 'me-1' : '')] + 'class' => [(!empty($this->options['text']) ? 'me-1' : '')] ]); return $bsIcon->icon(); }