Skip to content

Commit

Permalink
Use Jenkins tooltips for image button.
Browse files Browse the repository at this point in the history
  • Loading branch information
uhafner committed Nov 22, 2022
1 parent 77d8480 commit 477d988
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 24 deletions.
9 changes: 3 additions & 6 deletions src/main/resources/font-awesome/svg-icon.jelly
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,9 @@

<j:choose>
<j:when test="${tooltip != null and size(tooltip) > 0}">
<span class="fa-tooltip">
<span class="jenkins-tooltip">${tooltip}</span>
<svg class="fa-svg-icon ${class}">
<use href="${resURL}/plugin/font-awesome-api/sprites/${prefix != null ? prefix : 'solid'}.svg#${name}"/>
</svg>
</span>
<svg tooltip="${tooltip}" class="fa-svg-icon ${class}">
<use href="${resURL}/plugin/font-awesome-api/sprites/${prefix != null ? prefix : 'solid'}.svg#${name}"/>
</svg>
</j:when>
<j:otherwise>
<svg class="fa-svg-icon ${class}">
Expand Down
18 changes: 0 additions & 18 deletions src/main/webapp/css/jenkins-style.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,6 @@
--fa-image-color: #b4b4b4;
}

.fa-tooltip {
position: relative;
display: inline-block;
font-weight: normal;
}

.fa-tooltip .jenkins-tooltip {
visibility: hidden;
position: absolute;
top: 105%;
left: 105%;
width: 15em;
}

.fa-tooltip:hover .jenkins-tooltip {
visibility: visible;
}

/* ------------------------------------------------------------------------------------------------------------------- */
/* A small image button */
/* ------------------------------------------------------------------------------------------------------------------- */
Expand Down

0 comments on commit 477d988

Please sign in to comment.