mirror of
https://github.com/getpaseo/paseo.git
synced 2026-11-05 07:54:38 +00:00
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.
10 lines
432 B
TypeScript
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)");
|
|
});
|
|
});
|