Skip to content

Commit

Permalink
Merge pull request #1960 from open-sausages/pulls/4.0/fine-tune-buttons
Browse files Browse the repository at this point in the history
FIX Fine-tune button styles
  • Loading branch information
Damian Mooyman committed Sep 12, 2017
2 parents 06fda1a + 4f3b4f7 commit f756a98
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion code/Controllers/CMSPageHistoryController.php
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,9 @@ public function getEditForm($id = null, $fields = null, $versionID = null, $comp
$revert = FormAction::create(
'doRollback',
_t('SilverStripe\\CMS\\Controllers\\CMSPageHistoryController.REVERTTOTHISVERSION', 'Revert to this version')
)->setUseButtonTag(true)
)
->setUseButtonTag(true)
->addExtraClass('font-icon-back-in-time')
);
$actions->setForm($form);
$form->setActions($actions);
Expand Down
2 changes: 1 addition & 1 deletion code/Model/SiteTree.php
Original file line number Diff line number Diff line change
Expand Up @@ -2253,7 +2253,7 @@ public function getCMSActions()
}

// "save", supports an alternate state that is still clickable, but notifies the user that the action is not needed.
$noChangesClasses = 'btn-outline-secondary font-icon-check-mark';
$noChangesClasses = 'btn-outline-primary font-icon-tick';
if ($canEdit && $isOnDraft) {
$majorActions->push(
FormAction::create('save', _t(__CLASS__.'.BUTTONSAVED', 'Saved'))
Expand Down

0 comments on commit f756a98

Please sign in to comment.