[BUGFIX] Add white-space to CSS class in FieldControl 96/57996/2
authorStefan Froemken <froemken@gmail.com>
Thu, 23 Aug 2018 08:12:16 +0000 (10:12 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Thu, 23 Aug 2018 08:46:50 +0000 (10:46 +0200)
Add a white-space in front of default CSS class
for buttons in field control wizards.

Resolves: #85935
Releases: master, 8.7
Change-Id: Ie4889b20ba95cf96f6895d5fc2e5375c70c48cc9
Reviewed-on: https://review.typo3.org/57996
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/backend/Classes/Form/NodeExpansion/FieldControl.php

index 31f4a05..e170ff2 100644 (file)
@@ -114,7 +114,7 @@ class FieldControl extends AbstractNode
             if (!isset($linkAttributes['class'])) {
                 $linkAttributes['class'] = 'btn btn-default';
             } else {
-                $linkAttributes['class'] .= 'btn btn-default';
+                $linkAttributes['class'] .= ' btn btn-default';
             }
             if (!isset($linkAttributes['href'])) {
                 $linkAttributes['href'] = '#';