diff --git a/typo3/sysext/backend/Classes/Template/Components/Buttons/GenericButton.php b/typo3/sysext/backend/Classes/Template/Components/Buttons/GenericButton.php
index c924eaa12cfc3eb0074fa741366f1d0d7b5f2e24..c1b38ad24a9b19761196cff6bba98d7ead5158ea 100644
--- a/typo3/sysext/backend/Classes/Template/Components/Buttons/GenericButton.php
+++ b/typo3/sysext/backend/Classes/Template/Components/Buttons/GenericButton.php
@@ -139,7 +139,7 @@ class GenericButton implements ButtonInterface
 
     public function isValid(): bool
     {
-        return !empty($this->getLabel())
+        return trim($this->getLabel()) !== ''
             && $this->getType() === self::class
             && $this->getIcon() !== null;
     }
diff --git a/typo3/sysext/filelist/Classes/FileList.php b/typo3/sysext/filelist/Classes/FileList.php
index 5684a4bd9f88114dfd284ded91f5fe2a8622ec1c..b136ce71aaa6b02072b4f65236d013406b97f766 100644
--- a/typo3/sysext/filelist/Classes/FileList.php
+++ b/typo3/sysext/filelist/Classes/FileList.php
@@ -991,7 +991,7 @@ class FileList
 
         $button = GeneralUtility::makeInstance(GenericButton::class);
         $button->setTag('a');
-        $button->setTitle($this->getLanguageService()->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:cm.view'));
+        $button->setLabel($this->getLanguageService()->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:cm.view'));
         $button->setHref($resourceView->getPublicUrl());
         $button->setAttributes(['target' => '_blank']);
         $button->setIcon($this->iconFactory->getIcon('actions-document-view', Icon::SIZE_SMALL));
@@ -1020,7 +1020,7 @@ class FileList
         }
 
         $button = GeneralUtility::makeInstance(GenericButton::class);
-        $button->setTitle($this->getLanguageService()->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:cm.rename'));
+        $button->setLabel($this->getLanguageService()->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:cm.rename'));
         $button->setAttributes(['type' => 'button', 'data-filelist-action' => 'rename']);
         $button->setIcon($this->iconFactory->getIcon('actions-edit-rename', Icon::SIZE_SMALL));
 
@@ -1038,7 +1038,7 @@ class FileList
         }
 
         $button = GeneralUtility::makeInstance(GenericButton::class);
-        $button->setTitle($this->getLanguageService()->sL('LLL:EXT:filelist/Resources/Private/Language/locallang.xlf:download'));
+        $button->setLabel($this->getLanguageService()->sL('LLL:EXT:filelist/Resources/Private/Language/locallang.xlf:download'));
         $button->setAttributes([
             'type' => 'button',
             'data-filelist-action' => 'download',
@@ -1072,7 +1072,7 @@ class FileList
         }
 
         $button = GeneralUtility::makeInstance(GenericButton::class);
-        $button->setTitle($this->getLanguageService()->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:cm.info'));
+        $button->setLabel($this->getLanguageService()->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:cm.info'));
         $button->setAttributes([
             'type' => 'button',
             'data-filelist-action' => 'show',
@@ -1107,7 +1107,7 @@ class FileList
 
         $title = $this->getLanguageService()->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:cm.delete');
         $button = GeneralUtility::makeInstance(GenericButton::class);
-        $button->setTitle($title);
+        $button->setLabel($title);
         $button->setIcon($this->iconFactory->getIcon('actions-edit-delete', Icon::SIZE_SMALL));
         $button->setAttributes([
             'type' => 'button',