Einheitliche Tabellenkopf-Groesse app-weit
This commit is contained in:
1 parent
2f1c2d786b
commit
dbd006a22c
1 file changed
+24
@@ -0,0 +1,24 @@
|
||||
import { readFileSync } from "node:fs";
|
||||
import { join, dirname } from "node:path";
|
||||
import { fileURLToPath } from "node:url";
|
||||
import { describe, expect, test } from "vitest";
|
||||
|
||||
const css = readFileSync(
|
||||
join(dirname(fileURLToPath(import.meta.url)), "globals.css"),
|
||||
"utf8",
|
||||
);
|
||||
|
||||
describe("einheitliche Tabellenköpfe", () => {
|
||||
test("gemeinsame Kopfgröße für Daten-Tabellen", () => {
|
||||
expect(css).toContain("--table-head-size: 0.95rem");
|
||||
for (const selector of [
|
||||
".users-table thead th",
|
||||
".team-matrix thead th",
|
||||
".compare-table thead th",
|
||||
]) {
|
||||
const block = css.slice(css.indexOf(selector));
|
||||
const rule = block.slice(0, block.indexOf("}"));
|
||||
expect(rule).toContain("var(--table-head-size)");
|
||||
}
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user