Skip to content

Commit

Permalink
Fix checkbox help alignment, add theme support for YUI modals
Browse files Browse the repository at this point in the history
  • Loading branch information
janfaracik committed Nov 29, 2021
1 parent 5566a69 commit 4a44304
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/resources/lib/form/entry.jelly
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ THE SOFTWARE.
</j:if>
</j:when>
<j:otherwise>
<div class="jenkins-checkbox-help-wrapper">
<div>
<d:invokeBody />
<f:helpLink url="${attrs.help}" featureName="${title}"/>
</div>
Expand Down
5 changes: 5 additions & 0 deletions war/src/main/less/base/yui-compatibility.less
Original file line number Diff line number Diff line change
Expand Up @@ -216,3 +216,8 @@ div.yahooTree td {
display: inline-block;
}
}

.yui-panel,
.yui-panel .bd {
background-color: var(--background) !important;
}
6 changes: 6 additions & 0 deletions war/src/main/less/modules/form.less
Original file line number Diff line number Diff line change
Expand Up @@ -372,12 +372,18 @@
}
}

// Align help buttons correctly with checkboxes

.jenkins-checkbox-help-wrapper {
display: flex;
align-items: center;
justify-content: flex-start;
}

.jenkins-checkbox + a.jenkins-help-button {
vertical-align: top;
}

.jenkins-checkbox {
position: relative;
display: inline-flex;
Expand Down

0 comments on commit 4a44304

Please sign in to comment.