[BUGFIX] Fix icon color in dropdown 91/50191/2
authorFrank Naegler <frank.naegler@typo3.org>
Wed, 12 Oct 2016 10:10:23 +0000 (12:10 +0200)
committerAndreas Fernandez <typo3@scripting-base.de>
Thu, 13 Oct 2016 07:54:16 +0000 (09:54 +0200)
This patch use inline SVG to colorize the icon in SplitButton dropdown.

Resolves: #78253
Releases: master
Change-Id: If28eefed88500a0338f6bd9e0c581aa9e1d52f18
Reviewed-on: https://review.typo3.org/50191
Tested-by: TYPO3com <no-reply@typo3.com>
Tested-by: Riccardo De Contardi <erredeco@gmail.com>
Reviewed-by: Joerg Boesche <typo3@joergboesche.de>
Reviewed-by: Mathias Schreiber <mathias.schreiber@wmdb.de>
Tested-by: Mathias Schreiber <mathias.schreiber@wmdb.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
typo3/sysext/backend/Classes/Template/Components/Buttons/SplitButton.php

index 86f2bc0..71f3d8e 100644 (file)
@@ -155,7 +155,7 @@ class SplitButton extends AbstractButton implements ButtonInterface
         $content = '
         <div class="btn-group t3js-splitbutton">
             <button' . $attributesString . '>
-                ' . $items['primary']->getIcon()->render() . '
+                ' . $items['primary']->getIcon()->render('inline') . '
                 ' . htmlspecialchars($items['primary']->getTitle()) . '
             </button>
             <button type="button" class="btn btn-sm btn-default dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
@@ -184,7 +184,7 @@ class SplitButton extends AbstractButton implements ButtonInterface
             }
             $content .= '
                 <li>
-                    <a' . $optionAttributesString . '>' . $option->getIcon()->render() . ' '
+                    <a' . $optionAttributesString . '>' . $option->getIcon()->render('inline') . ' '
                     . htmlspecialchars($option->getTitle()) . '</a>
                 </li>
             ';