From 26ba29b538568026ed2330a7028f9ba36edbeb5d Mon Sep 17 00:00:00 2001 From: Paul Armstrong Date: Mon, 18 Jan 2021 09:31:06 -0800 Subject: [PATCH] fix(web): ensure button bg colors show in prod builds --- web/src/components/Button.jsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/web/src/components/Button.jsx b/web/src/components/Button.jsx index c081ead80..5a194a3c5 100644 --- a/web/src/components/Button.jsx +++ b/web/src/components/Button.jsx @@ -2,12 +2,18 @@ import { h } from 'preact'; const noop = () => {}; +const BUTTON_COLORS = { + blue: { normal: 'bg-blue-500', hover: 'hover:bg-blue-400' }, + red: { normal: 'bg-red-500', hover: 'hover:bg-red-400' }, + green: { normal: 'bg-green-500', hover: 'hover:bg-green-400' }, +}; + export default function Button({ children, className, color = 'blue', onClick, size, ...attrs }) { return (