Skip to content

Commit 8633318

Browse files
fixed styles error
1 parent 57bb7d0 commit 8633318

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/comment.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ export function commentForMonorepo(
2525
const arrow = pdiff === 0 ? "" : pdiff < 0 ? "▾" : "▴";
2626

2727
const getColor = () => {
28-
if (pdiff === 0) return 'inherit';
29-
if (pdiff < 0) return 'red';
30-
if (pdiff > 0) return 'green';
28+
if (pdiff === 0) return "color:inherit;";
29+
if (pdiff < 0) return "color:red;";
30+
if (pdiff > 0) return "color:green;";
3131
};
3232

33-
const thArrow = `<span style="color:${getColor()};"}>${arrow}</span>`;
34-
const thPlus = `<span style="color:${getColor()};"}>${plus}</span>`;
35-
const thDiff = `<span style="color:${getColor()};"}>${pdiff.toFixed(2)}</span>`;
33+
const thArrow = `<span style=${getColor()}>${arrow}</span>`;
34+
const thPlus = `<span style=${getColor()}>${plus}</span>`;
35+
const thDiff = `<span style=${getColor()}>${pdiff.toFixed(2)}</span>`;
3636

3737
const pdiffHtml = baseLcov ? th(thArrow, " ", thPlus, thDiff, "%") : "";
3838

0 commit comments

Comments
 (0)