Skip to content

Commit fdd8bbf

Browse files
authored
Merge pull request #29 from jenkinsci/fontawesome-style
Add option to specify the style prefix for the FontAwesome icons
2 parents 37dbf77 + 710c559 commit fdd8bbf

File tree

3 files changed

+91
-10
lines changed

3 files changed

+91
-10
lines changed

package-lock.json

Lines changed: 85 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<module.name>${project.groupId}.bootstrap5</module.name>
2525

2626
<popper2-api.version>2.9.3-1</popper2-api.version>
27-
<font-awesome-api.version>5.15.3-4</font-awesome-api.version>
27+
<font-awesome-api.version>5.15.4-1</font-awesome-api.version>
2828
<plugin-util-api.version>2.4.0</plugin-util-api.version>
2929

3030
</properties>

src/main/resources/bootstrap5/card.jelly

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515
<st:attribute name="fontAwesomeIcon" use="optional" type="String">
1616
A Font Awesome SVG icon to be shown at the top right corner, e.g. 'chevron-circle-up'.
1717
</st:attribute>
18+
<st:attribute name="fontAwesomeStyle" use="optional" type="String">
19+
FontAwesome Icon style to be used. Allowed style values are "solid", "regular", or "brands". If no style is
20+
defined then the default style "solid" will be used.
21+
</st:attribute>
1822
<st:attribute name="class" use="optional" type="String">
1923
Additional classes to be applied to the card.
2024
</st:attribute>
@@ -32,7 +36,7 @@
3236
<img src="${pngIcon}" class="icon-right"/>
3337
</j:if>
3438
<j:if test="${fontAwesomeIcon!=null}">
35-
<fa:svg-icon name="${fontAwesomeIcon}" class="icon-right"/>
39+
<fa:svg-icon name="${fontAwesomeIcon}" prefix="${fontAwesomeStyle != null ? fontAwesomeStyle : 'solid'}" class="icon-right"/>
3640
</j:if>
3741

3842
</div>

0 commit comments

Comments
 (0)