Skip to content

Commit 1909338

Browse files
authored
Merge pull request #51 from daemonu/patch-1
fix(color): comment line shows white trailing bar
2 parents c00ba41 + 14a2def commit 1909338

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Output/Color.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class Color
5050
*/
5151
public function comment(string $text, array $style = []): string
5252
{
53-
return $this->line($text, ['fg' => static::DARKGRAY, 'bold' => 0] + $style);
53+
return $this->line($text, ['bold' => 2] + $style);
5454
}
5555

5656
/**

tests/Output/ColorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function test_methods($method, $color)
2424

2525
public function test_comment()
2626
{
27-
$this->assertSame("\033[0;100mcomment\033[0m", (new Color)->comment('comment'));
27+
$this->assertSame("\033[2;37mcomment\033[0m", (new Color)->comment('comment'));
2828
}
2929

3030
public function test_custom_style()

0 commit comments

Comments
 (0)