diff --git a/apps/desktop/src/components/quick-open/QuickOpenDialog.vue b/apps/desktop/src/components/quick-open/QuickOpenDialog.vue index 109f28e21d..646fdc3010 100644 --- a/apps/desktop/src/components/quick-open/QuickOpenDialog.vue +++ b/apps/desktop/src/components/quick-open/QuickOpenDialog.vue @@ -196,11 +196,20 @@ watch( diff --git a/apps/desktop/src/components/quick-open/__tests__/QuickOpenDialogStyle.spec.ts b/apps/desktop/src/components/quick-open/__tests__/QuickOpenDialogStyle.spec.ts new file mode 100644 index 0000000000..b403d9d4a3 --- /dev/null +++ b/apps/desktop/src/components/quick-open/__tests__/QuickOpenDialogStyle.spec.ts @@ -0,0 +1,13 @@ +import { readFileSync } from "node:fs"; +import { describe, expect, it } from "vitest"; + +const quickOpenDialogSource = readFileSync(new URL("../QuickOpenDialog.vue", import.meta.url), "utf8"); + +describe("QuickOpenDialog theme styles", () => { + it("keeps the shared corner style and readable foreground text", () => { + expect(quickOpenDialogSource).toContain('class="max-w-2xl p-0 gap-0 rounded-lg overflow-hidden"'); + expect(quickOpenDialogSource).toContain("background-color: var(--warning-bg) !important;"); + expect(quickOpenDialogSource).not.toContain("border-radius: 0.75rem;"); + expect(quickOpenDialogSource).not.toContain("color: var(--warning) !important;"); + }); +});