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"> <script type="text/babel">
var IssueTag = React.createClass({ var IssueTag = React.createClass({
render: function() { render: function() {
var level = "" var level = "tag "
if (this.props.level === "HIGH") { if (this.props.level === "HIGH") {
level = "is-danger"; level += "is-danger";
} } else if (this.props.level === "MEDIUM") {
if (this.props.level === "MEDIUM") { level += "is-warning";
level = "is-warning";
} }
return ( return (
<div className="tag { level }"> <div className={ level }>
{ this.props.label }: { this.props.level } { this.props.label }: { this.props.level }
</div> </div>
); );