Skip to content

Commit 2299ec7

Browse files
committed
fix: correct dimming of text in summary
1 parent 0e498ef commit 2299ec7

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

src/PostMessage.tsx

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ const TestInfo: React.FC<{ config: Config.GlobalConfig }> = ({ config }) => {
3131
}
3232

3333
if (config.testPathPattern) {
34-
const prefix = config.findRelatedTests
35-
? 'related to files matching'
36-
: 'matching';
37-
3834
return (
3935
<Box>
40-
<HorizontallyPadded>{prefix}</HorizontallyPadded>
36+
<HorizontallyPadded>
37+
<Color dim>
38+
{config.findRelatedTests ? 'related to files matching' : 'matching'}
39+
</Color>
40+
</HorizontallyPadded>
4141
<Text>
4242
{testPathPatternToRegExp(config.testPathPattern).toString()}
4343
</Text>
@@ -55,11 +55,12 @@ const NameInfo: React.FC<{ config: Config.GlobalConfig }> = ({ config }) => {
5555

5656
if (config.testNamePattern) {
5757
return (
58-
<LeftPadded>
59-
<Color dim>
60-
with tests matching &quot;{config.testNamePattern}&quot;
61-
</Color>
62-
</LeftPadded>
58+
<>
59+
<HorizontallyPadded>
60+
<Color dim>with tests matching</Color>
61+
</HorizontallyPadded>
62+
<Text>&quot;{config.testNamePattern}&quot;</Text>
63+
</>
6364
);
6465
}
6566

0 commit comments

Comments
 (0)