From 67d27b3c4cf7f9e272d153004c50c3dfaed75fba Mon Sep 17 00:00:00 2001 From: Van Anderson Date: Thu, 4 Mar 2021 10:40:03 -0600 Subject: [PATCH] revert theme-preval breaking changes --- src/theme-preval.js | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/src/theme-preval.js b/src/theme-preval.js index 5f5487c0d56..bb486b2ecb4 100644 --- a/src/theme-preval.js +++ b/src/theme-preval.js @@ -258,6 +258,33 @@ const buttons = { } } +const flash = { + default: { + backgroundColor: blue[1], + borderColor: 'rgba(4, 66, 137, 0.2)' + }, + success: { + backgroundColor: green[1], + borderColor: 'rgba(23, 111, 44, 0.2)' + }, + danger: { + backgroundColor: '#FFE3E6', + borderColor: 'rgba(158, 28, 35, 0.2)' + }, + warning: { + backgroundColor: yellow[1], + borderColor: 'rgba(176, 136, 0, 0.2)' + } +} + +// this has to be separated from the flash object since we have to use an svg selector to style the icon color +const flashIcon = { + default: 'rgba(4, 66, 137, 0.6)', + success: 'rgba(23, 111, 44, 0.8)', + danger: 'rgba(158, 28, 35, 0.6)', + warning: yellow[8] +} + const popovers = { colors: { caret: 'rgba(27, 31, 35, 0.15)'