Skip to content

Commit c3f25b8

Browse files
authored
fix html report tag styling (#623)
1 parent 433a674 commit c3f25b8

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

report/html/template.go

+5-6
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,14 @@ const templateContent = `
5858
<script type="text/babel">
5959
var IssueTag = React.createClass({
6060
render: function() {
61-
var level = ""
61+
var level = "tag "
6262
if (this.props.level === "HIGH") {
63-
level = "is-danger";
64-
}
65-
if (this.props.level === "MEDIUM") {
66-
level = "is-warning";
63+
level += "is-danger";
64+
} else if (this.props.level === "MEDIUM") {
65+
level += "is-warning";
6766
}
6867
return (
69-
<div className="tag { level }">
68+
<div className={ level }>
7069
{ this.props.label }: { this.props.level }
7170
</div>
7271
);

0 commit comments

Comments
 (0)