fix: [helpers:bootstrap] UI issue in button

Buttons with icon should have margin only if they contain text
pull/72/head
Sami Mokaddem 2021-10-08 16:53:00 +02:00
parent b96991cf4a
commit ef707d89f2
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 1 additions and 1 deletions

View File

@ -909,7 +909,7 @@ class BoostrapButton extends BootstrapGeneric {
{ {
if (!empty($this->options['icon'])) { if (!empty($this->options['icon'])) {
$bsIcon = new BoostrapIcon($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(); return $bsIcon->icon();
} }