diff --git a/core/lib/Drupal/Core/Entity/ContentEntityConfirmFormBase.php b/core/lib/Drupal/Core/Entity/ContentEntityConfirmFormBase.php
index a174e31..a1a7fff 100644
--- a/core/lib/Drupal/Core/Entity/ContentEntityConfirmFormBase.php
+++ b/core/lib/Drupal/Core/Entity/ContentEntityConfirmFormBase.php
@@ -83,7 +83,14 @@ public function form(array $form, array &$form_state) {
   protected function actions(array $form, array &$form_state) {
     $actions = parent::actions($form, $form_state);
     $actions['submit']['#value'] = $this->getConfirmText();
-    unset($actions['delete']);
+
+    // If we have a delete action, remove it and infer that our submit action is dangerous
+    if (isset($actions['delete'])) {
+      unset($actions['delete']);
+      $actions['submit']['#attributes'] = array(
+        'class' => array('primary-danger'),
+      );
+    }
 
     // Prepare cancel link.
     $actions['cancel'] = ConfirmFormHelper::buildCancelLink($this, $this->getRequest());
diff --git a/core/lib/Drupal/Core/Entity/EntityConfirmFormBase.php b/core/lib/Drupal/Core/Entity/EntityConfirmFormBase.php
index a86d646..7d2b4c7 100644
--- a/core/lib/Drupal/Core/Entity/EntityConfirmFormBase.php
+++ b/core/lib/Drupal/Core/Entity/EntityConfirmFormBase.php
@@ -78,7 +78,14 @@ public function buildForm(array $form, array &$form_state) {
   protected function actions(array $form, array &$form_state) {
     $actions = parent::actions($form, $form_state);
     $actions['submit']['#value'] = $this->getConfirmText();
-    unset($actions['delete']);
+
+    // If we have a delete action, remove it and infer that our submit action is dangerous
+    if (isset($actions['delete'])) {
+      unset($actions['delete']);
+      $actions['submit']['#attributes'] = array(
+        'class' => array('primary-danger'),
+      );
+    }
 
     // Prepare cancel link.
     $actions['cancel'] = ConfirmFormHelper::buildCancelLink($this, $this->getRequest());
