From 0e07562c16a15706b8a3283fbe5a8818d4675332 Mon Sep 17 00:00:00 2001 From: Cameron Bryers <12287346+Cambis@users.noreply.github.com> Date: Tue, 6 Aug 2024 12:59:48 +1200 Subject: [PATCH] FIX address cancel button icon issue --- src/Extensions/Page_ObjectWorkflowApplicationExtension.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Extensions/Page_ObjectWorkflowApplicationExtension.php b/src/Extensions/Page_ObjectWorkflowApplicationExtension.php index b7823131..541f9a18 100644 --- a/src/Extensions/Page_ObjectWorkflowApplicationExtension.php +++ b/src/Extensions/Page_ObjectWorkflowApplicationExtension.php @@ -44,7 +44,8 @@ public function updateCMSActions(FieldList $actions) Requirements::javascript('symbiote/silverstripe-advancedworkflow:client/dist/js/CancelButton.js'); $action = FormAction::create('cancelworkflow', 'Cancel Workflow') - ->setUseButtonTag(true)->setAttribute('data-icon', 'navigation'); + ->setUseButtonTag(true) + ->addExtraClass('font-icon-cancel'); if ($actions->fieldByName('MajorActions')) { $actions->fieldByName('MajorActions')->push($action);