Skip to content

Commit 82ed12a

Browse files
Change the HTML coverage report's color scheme from red/yellow/green to a more colorblind-friendly blue/amber/orange palette
1 parent e2b9b84 commit 82ed12a

2 files changed

Lines changed: 32 additions & 32 deletions

File tree

src/Report/Html/Colors.php

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -38,22 +38,22 @@
3838
public static function default(): self
3939
{
4040
return new self(
41-
'#dff0d8',
42-
'#2d4431',
43-
'#c3e3b5',
44-
'#3c6051',
45-
'#99cb84',
46-
'#3d5c4e',
47-
'#28a745',
48-
'#1f8135',
49-
'#fcf8e3',
50-
'#3e3408',
51-
'#ffc107',
52-
'#c19406',
53-
'#f2dede',
54-
'#42221e',
55-
'#dc3545',
56-
'#a62633',
41+
'#d6e6f2',
42+
'#1e3550',
43+
'#b3d1e8',
44+
'#2d4f6e',
45+
'#8cb4d5',
46+
'#2a4a6b',
47+
'#1a73b4',
48+
'#1560a0',
49+
'#fdf0d5',
50+
'#3d3010',
51+
'#e5a100',
52+
'#b88a00',
53+
'#fad4c0',
54+
'#4a2a10',
55+
'#d45500',
56+
'#b54400',
5757
'var(--bs-gray-200)',
5858
'var(--bs-gray-800)',
5959
);

tests/tests/Report/Html/ColorsTest.php

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -21,22 +21,22 @@ public function testCanBeCreatedFromDefaults(): void
2121
{
2222
$colors = Colors::default();
2323

24-
$this->assertSame('#dff0d8', $colors->successLow());
25-
$this->assertSame('#2d4431', $colors->successLowDark());
26-
$this->assertSame('#c3e3b5', $colors->successMedium());
27-
$this->assertSame('#3c6051', $colors->successMediumDark());
28-
$this->assertSame('#99cb84', $colors->successHigh());
29-
$this->assertSame('#3d5c4e', $colors->successHighDark());
30-
$this->assertSame('#28a745', $colors->successBar());
31-
$this->assertSame('#1f8135', $colors->successBarDark());
32-
$this->assertSame('#fcf8e3', $colors->warning());
33-
$this->assertSame('#3e3408', $colors->warningDark());
34-
$this->assertSame('#ffc107', $colors->warningBar());
35-
$this->assertSame('#c19406', $colors->warningBarDark());
36-
$this->assertSame('#f2dede', $colors->danger());
37-
$this->assertSame('#42221e', $colors->dangerDark());
38-
$this->assertSame('#dc3545', $colors->dangerBar());
39-
$this->assertSame('#a62633', $colors->dangerBarDark());
24+
$this->assertSame('#d6e6f2', $colors->successLow());
25+
$this->assertSame('#1e3550', $colors->successLowDark());
26+
$this->assertSame('#b3d1e8', $colors->successMedium());
27+
$this->assertSame('#2d4f6e', $colors->successMediumDark());
28+
$this->assertSame('#8cb4d5', $colors->successHigh());
29+
$this->assertSame('#2a4a6b', $colors->successHighDark());
30+
$this->assertSame('#1a73b4', $colors->successBar());
31+
$this->assertSame('#1560a0', $colors->successBarDark());
32+
$this->assertSame('#fdf0d5', $colors->warning());
33+
$this->assertSame('#3d3010', $colors->warningDark());
34+
$this->assertSame('#e5a100', $colors->warningBar());
35+
$this->assertSame('#b88a00', $colors->warningBarDark());
36+
$this->assertSame('#fad4c0', $colors->danger());
37+
$this->assertSame('#4a2a10', $colors->dangerDark());
38+
$this->assertSame('#d45500', $colors->dangerBar());
39+
$this->assertSame('#b54400', $colors->dangerBarDark());
4040
$this->assertSame('var(--bs-gray-200)', $colors->breadcrumbs());
4141
$this->assertSame('var(--bs-gray-800)', $colors->breadcrumbsDark());
4242
}

0 commit comments

Comments
 (0)