fix html report tag styling (#623)

This commit is contained in:
Marc Brugger 2021-05-21 08:13:20 +02:00 committed by GitHub
parent 433a67483a
commit c3f25b8ab3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -58,15 +58,14 @@ const templateContent = `
<script type="text/babel">
var IssueTag = React.createClass({
render: function() {
var level = ""
var level = "tag "
if (this.props.level === "HIGH") {
level = "is-danger";
}
if (this.props.level === "MEDIUM") {
level = "is-warning";
level += "is-danger";
} else if (this.props.level === "MEDIUM") {
level += "is-warning";
}
return (
<div className="tag { level }">
<div className={ level }>
{ this.props.label }: { this.props.level }
</div>
);