Files
paseo/packages/app/src/styles/web-scrollbar.test.ts
T
Mohamed Boudra d99258cdd0 fix(app): keep web scrollbars from shifting content
Use an overlay scrollbar for desktop chat timelines so scrollbar gutters cannot move centered content. Share its behavior with existing workspace scrollbars and derive resting and hover colors from semantic foreground tokens.
2026-08-16 12:45:06 +02:00

10 lines
432 B
TypeScript

import { describe, expect, it } from "vitest";
import { webScrollbarThumbColor } from "./web-scrollbar";
describe("web scrollbar color", () => {
it("uses the resting opacity by default and full opacity when requested", () => {
expect(webScrollbarThumbColor("gray")).toBe("color-mix(in srgb, gray 40%, transparent)");
expect(webScrollbarThumbColor("gray", 1)).toBe("color-mix(in srgb, gray 100%, transparent)");
});
});