From c0e8e5c5eb504b544f339adb6a505ca6249c7436 Mon Sep 17 00:00:00 2001 From: Ryan Arthur Date: Wed, 3 Oct 2018 09:53:31 -0400 Subject: [PATCH] Color the tnx status label --- apps/block_scout_web/assets/css/_typography.scss | 8 ++++++++ .../templates/transaction/overview.html.eex | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/apps/block_scout_web/assets/css/_typography.scss b/apps/block_scout_web/assets/css/_typography.scss index f29c6bc34e..9086a8b7df 100644 --- a/apps/block_scout_web/assets/css/_typography.scss +++ b/apps/block_scout_web/assets/css/_typography.scss @@ -94,3 +94,11 @@ label, textarea.form-control { color: $teal; } } + +[data-transaction-status="Success"] { + color: $success; +} + +[data-transaction-status^="Error"] { + color: $danger; +} diff --git a/apps/block_scout_web/lib/block_scout_web/templates/transaction/overview.html.eex b/apps/block_scout_web/lib/block_scout_web/templates/transaction/overview.html.eex index d8a7628e91..2a7bc573a5 100644 --- a/apps/block_scout_web/lib/block_scout_web/templates/transaction/overview.html.eex +++ b/apps/block_scout_web/lib/block_scout_web/templates/transaction/overview.html.eex @@ -32,7 +32,7 @@
<%= BlockScoutWeb.TransactionView.transaction_display_type(@transaction) %> - <%= BlockScoutWeb.TransactionView.formatted_status(@transaction) %> + <%= BlockScoutWeb.TransactionView.formatted_status(@transaction) %> <%= if block do %>