fix(webui): crossfade theme changes as one page (#6459)
* fix(webui): crossfade theme changes as one page * test(webui): align selection highlight motion checks Follow the shared CSS transition contract instead of obsolete Tailwind utilities. Verify normal geometry easing and reduced-motion theme paint in the browser without changing accepted theme behavior or relaxing CI gates.
This commit is contained in:
1 parent
4701218719
commit
83b6112843
20 files changed
+538
-67
No files matched your search
@@ -75,7 +75,7 @@ describe("preview tabs", () => {
|
||||
const highlight = screen.getByTestId("preview-tabs-selection-highlight");
|
||||
expect(highlight).toHaveAttribute("data-active-id", "file:data.json");
|
||||
expect(highlight.className).toContain("bg-sidebar-foreground/[0.055]");
|
||||
expect(highlight.className).toContain("motion-reduce:transition-none");
|
||||
expect(highlight).toHaveClass("sidebar-selection-highlight");
|
||||
await waitFor(() => expect(shell.style.getPropertyValue("--file-preview-slot-width")).toBe("544px"));
|
||||
fireEvent.click(screen.getByRole("tab", { name: "chart.png" }));
|
||||
expect(screen.getByTestId("preview-pane")).toBe(shell);
|
||||
|
||||
Reference in new issue
Block a user