fix(260928-ujj): Biome-Formatierung der mit Design Mosaik eingebrachten Dateien

- Nur Formatierung und Importreihenfolge, keine Verhaltensaenderung
- Betrifft ausschliesslich Befunde, die der Merge neu eingebracht hat

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-09-28 22:14:57 +02:00
parent 0aaa15240d
commit 69d17302e1
12 changed files with 46 additions and 40 deletions
+16 -2
View File
@@ -1,5 +1,11 @@
import { describe, expect, it } from 'vitest';
import { DARK_ON_ACCENT, LIGHT_ON_ACCENT, normalizeHexColor, readableOnAccent, relativeLuminance } from './color';
import {
DARK_ON_ACCENT,
LIGHT_ON_ACCENT,
normalizeHexColor,
readableOnAccent,
relativeLuminance,
} from './color';
/**
* color.test — Normalisierung der Hex-Eingabe der Akzentfarbe
@@ -61,7 +67,15 @@ describe('readableOnAccent (Design „Mosaik“)', () => {
});
it('haelt fuer eine Reihe von Akzenten mindestens 3:1 (Symbol auf der Kachel)', () => {
for (const accent of ['#ffed00', '#123456', '#e11d48', '#0ea5e9', '#16a34a', '#777777', '#f97316']) {
for (const accent of [
'#ffed00',
'#123456',
'#e11d48',
'#0ea5e9',
'#16a34a',
'#777777',
'#f97316',
]) {
expect(contrast(accent, readableOnAccent(accent))).toBeGreaterThanOrEqual(3);
}
});