refactor(ui): switch surfaces to shared shadow tokens
This commit is contained in:
@@ -11,23 +11,28 @@ import { EVENT_CARD_SURFACE_CLASSES } from "@/components/event-card";
|
||||
describe("app shell surfaces", () => {
|
||||
test("header surface is a thin structural bar instead of a glass panel", () => {
|
||||
expect(APP_HEADER_SURFACE_CLASSES).toContain("min-h-14");
|
||||
expect(APP_HEADER_SURFACE_CLASSES).toContain("border-b");
|
||||
expect(APP_HEADER_SURFACE_CLASSES).toContain("shadow-[inset_0_-1px_0_0_var(--color-border)]");
|
||||
expect(APP_HEADER_SURFACE_CLASSES).not.toContain("glass-surface");
|
||||
});
|
||||
|
||||
test("section and action surfaces use tokenized shell classes instead of glass helpers", () => {
|
||||
test("section and action surfaces use tokenized shell classes instead of frozen light-mode shadows", () => {
|
||||
expect(APP_SECTION_SURFACE_CLASSES).not.toContain("glass-panel");
|
||||
expect(APP_ACTION_BAR_CLASSES).not.toContain("glass-subtle");
|
||||
expect(APP_NAV_SURFACE_CLASSES).not.toContain("glass-surface");
|
||||
expect(APP_SECTION_SURFACE_CLASSES).toContain("shadow");
|
||||
expect(APP_SECTION_SURFACE_CLASSES).not.toContain("rgba(0,0,0,0.08)");
|
||||
expect(APP_ACTION_BAR_CLASSES).toContain("shadow-sm");
|
||||
expect(APP_ACTION_BAR_CLASSES).not.toContain("rgba(0,0,0,0.08)");
|
||||
expect(APP_NAV_SURFACE_CLASSES).toContain("shadow-lg");
|
||||
expect(APP_NAV_SURFACE_CLASSES).not.toContain("rgba(0,0,0,0.08)");
|
||||
});
|
||||
});
|
||||
|
||||
describe("event cards", () => {
|
||||
test("event cards use the redesigned console card treatment", () => {
|
||||
expect(EVENT_CARD_SURFACE_CLASSES).toContain("rounded-[10px]");
|
||||
expect(EVENT_CARD_SURFACE_CLASSES).toContain(
|
||||
"shadow-[0_0_0_1px_rgba(0,0,0,0.08)",
|
||||
);
|
||||
expect(EVENT_CARD_SURFACE_CLASSES).toContain("shadow");
|
||||
expect(EVENT_CARD_SURFACE_CLASSES).not.toContain("rgba(0,0,0,0.08)");
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user