From 078f81e853df34ac833541e097feef445430edbc Mon Sep 17 00:00:00 2001 From: Eric Date: Tue, 29 Sep 2020 15:02:05 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B02847=20-=20Shortcut=20buttons=20look?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sources/application/UI/Component/Button/ButtonFactory.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sources/application/UI/Component/Button/ButtonFactory.php b/sources/application/UI/Component/Button/ButtonFactory.php index 604eb69b2..147cec9a8 100644 --- a/sources/application/UI/Component/Button/ButtonFactory.php +++ b/sources/application/UI/Component/Button/ButtonFactory.php @@ -271,7 +271,8 @@ class ButtonFactory */ public static function MakeLinkNeutral(string $sURL, ?string $sLabel = null, ?string $sIconClass = null, ?string $sName = null, ?string $sTarget = null, ?string $sId = null): Button { - $oButton = static::MakeForAction($sLabel, Button::ENUM_COLOR_NEUTRAL, Button::ENUM_ACTION_TYPE_ALTERNATIVE, null, $sName, false, $sId); + $sType = empty($sIconClass) ? Button::ENUM_ACTION_TYPE_REGULAR : Button::ENUM_ACTION_TYPE_ALTERNATIVE; + $oButton = static::MakeForAction($sLabel, Button::ENUM_COLOR_NEUTRAL, $sType, null, $sName, false, $sId); if (!empty($sIconClass)) { $oButton->SetIconClass($sIconClass);