From 3881e4d8eacfff9bbb7a8e15b9aa68a9ac6800a7 Mon Sep 17 00:00:00 2001 From: Guilhem Lemouel Date: Tue, 11 Aug 2026 10:14:53 +0200 Subject: [PATCH] fix(frontend): make destructive default and subtle buttons read red Both variants were neutral until the pointer arrived, then filled solid red: nothing marked the button as destructive until you were already on it. They now carry red text at rest, with a faded red border on default and a light red wash on hover, which is what the legacy red border style in the same file had always done. Three call sites passed color="red" alongside a design-system variant. getStyleClass returns before colour is read for accent, accent-secondary, default and subtle, so the delete-migration control, its modal confirm and the import-database button had all been rendering neutral. They pass destructive now. The dropdown variant strips the button's own border, and matched border-border-light literally -- a class the destructive style no longer contains. Co-Authored-By: Claude Opus 5 (1M context) --- frontend/src/lib/components/DBManagerDrawer.svelte | 3 ++- frontend/src/lib/components/common/button/Button.svelte | 4 +++- frontend/src/lib/components/common/button/model.ts | 4 ++-- .../workspaceSettings/DataTableMigrationsButton.svelte | 4 ++-- 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/frontend/src/lib/components/DBManagerDrawer.svelte b/frontend/src/lib/components/DBManagerDrawer.svelte index 4cac116f06..13bb2b3d90 100644 --- a/frontend/src/lib/components/DBManagerDrawer.svelte +++ b/frontend/src/lib/components/DBManagerDrawer.svelte @@ -323,7 +323,8 @@