From b3af154bd539df1336399475d29fefe60585ddb5 Mon Sep 17 00:00:00 2001
From: Wolfgang Müller
Date: Fri, 21 Feb 2025 11:59:35 +0100
Subject: frontend: Use CSS selector instead of ternary conditional in
 DeleteButton

---
 frontend/src/lib/components/DeleteButton.svelte | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'frontend/src/lib/components/DeleteButton.svelte')

diff --git a/frontend/src/lib/components/DeleteButton.svelte b/frontend/src/lib/components/DeleteButton.svelte
index bc94c8c..4659e13 100644
--- a/frontend/src/lib/components/DeleteButton.svelte
+++ b/frontend/src/lib/components/DeleteButton.svelte
@@ -12,7 +12,8 @@
 
 <button
 	type="button"
-	class={prominent ? 'btn-rose' : 'btn-slate hover:bg-rose-700'}
+	class:prominent
+	class="[&.prominent]:btn-rose btn-slate hover:bg-rose-700"
 	title="Delete forever"
 	aria-label="Delete forever"
 	{onclick}
-- 
cgit v1.2.3-2-gb3c3

