Skip to content

Commit 8750316

Browse files
committed
Use warning color to fill the error icon.
1 parent 8aaad1d commit 8750316

File tree

2 files changed

+20
-24
lines changed

2 files changed

+20
-24
lines changed

src/main/resources/io/jenkins/plugins/bootstrap5/MessagesViewModel/index.jelly

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?jelly escape-by-default='true'?>
2-
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:bs="/bootstrap5">
2+
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:bs="/bootstrap5" xmlns:fa="/font-awesome">
33

44
<st:header name="Content-Type" value="text/html;charset=UTF-8"/>
55

@@ -8,19 +8,24 @@
88
<j:if test="${size(it.errorMessages) > 0}">
99
<div class="row py-3">
1010
<div class="col">
11-
<bs:card title="${%Error Messages}" fontAwesomeIcon="exclamation-triangle">
12-
13-
<pre>
14-
<samp id="errors" class="log-output">
15-
<j:forEach var="message" items="${it.errorMessages}">
16-
<div>
17-
${message}
18-
</div>
19-
</j:forEach>
20-
</samp>
21-
</pre>
22-
23-
</bs:card>
11+
12+
<div class="card">
13+
<div class="card-body">
14+
<div class="card-title">
15+
${%Error Messages}
16+
<fa:svg-icon name="exclamation-triangle" class="icon-right fa-image-button-warning"/>
17+
</div>
18+
<pre>
19+
<samp id="errors" class="log-output">
20+
<j:forEach var="message" items="${it.errorMessages}">
21+
<div>
22+
${message}
23+
</div>
24+
</j:forEach>
25+
</samp>
26+
</pre>
27+
</div>
28+
</div>
2429
</div>
2530
</div>
2631
</j:if>

src/main/webapp/css/jenkins-style.css

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,6 @@ pre {
3030
font-size: var(--font-size-sm);
3131
}
3232

33-
.info-page-decorator {
34-
fill: #b4b4b4;
35-
height: 16px;
36-
width: 16px;
37-
vertical-align: text-bottom;
38-
margin-left: 0.2em;
39-
}
40-
4133
/* ------------------------------------------------------------------------------------------------------------------- */
4234
/* Bootstrap Carousel */
4335
/* ------------------------------------------------------------------------------------------------------------------- */
@@ -59,7 +51,6 @@ pre {
5951
font-size: inherit;
6052
}
6153

62-
6354
.card-title {
6455
font-size: 1.2rem;
6556
font-weight: 500;
@@ -68,7 +59,7 @@ pre {
6859

6960
.icon-right {
7061
float: right;
71-
fill: #b4b4b4;
62+
fill: var(--fa-image-color);
7263
height: 48px;
7364
width: 48px;
7465
position: absolute;

0 commit comments

Comments
 (0)