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:
@@ -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);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user