From e95f8ef6bf135031d709075451a37cbf2af19b07 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Mon, 27 Feb 2023 00:27:20 +0100 Subject: [PATCH] add none color for buttons --- frontend/src/lib/components/common/button/Button.svelte | 5 +++++ frontend/src/lib/components/common/button/model.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/frontend/src/lib/components/common/button/Button.svelte b/frontend/src/lib/components/common/button/Button.svelte index 280b9bb69c..846504286d 100644 --- a/frontend/src/lib/components/common/button/Button.svelte +++ b/frontend/src/lib/components/common/button/Button.svelte @@ -29,6 +29,11 @@ const dispatch = createEventDispatcher() // Order of classes: border, border modifier, bg, bg modifier, text, text modifier, everything else const colorVariants: Record> = { + none: { + border: '', + contained: '' + }, + blue: { border: 'border-frost-500 hover:border-frost-700 focus:border-frost-700 bg-white hover:bg-frost-100 focus:bg-frost-100 text-frost-500 hover:text-frost-700 focus:text-frost-700 focus:ring-frost-300', diff --git a/frontend/src/lib/components/common/button/model.ts b/frontend/src/lib/components/common/button/model.ts index c3d4fcae14..578a34bb28 100644 --- a/frontend/src/lib/components/common/button/model.ts +++ b/frontend/src/lib/components/common/button/model.ts @@ -1,4 +1,4 @@ -export const BUTTON_COLORS = ['blue', 'red', 'dark', 'light', 'green', 'gray'] as const +export const BUTTON_COLORS = ['blue', 'red', 'dark', 'light', 'green', 'gray', 'none'] as const export namespace ButtonType {