From 94d18cccefa94339bb89bb608e8a9f3a1e02e78c Mon Sep 17 00:00:00 2001 From: Satyajit Sahoo Date: Sat, 12 Nov 2016 23:52:24 +0530 Subject: [PATCH] fix: fix background color of button --- src/components/Button.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/Button.js b/src/components/Button.js index f414d07..ad59030 100644 --- a/src/components/Button.js +++ b/src/components/Button.js @@ -118,7 +118,11 @@ class Button extends Component { if (buttonColor) { backgroundColor = buttonColor; } else { - backgroundColor = primary ? colors.primary : white; + if (primary) { + backgroundColor = colors.primary; + } else { + backgroundColor = dark ? black : white; + } } } } else {