Skip to content

Commit

Permalink
Add 'Build' primary button example (#370)
Browse files Browse the repository at this point in the history
  • Loading branch information
janfaracik authored Jan 6, 2025
1 parent 28150ef commit 5a69266
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,18 +43,6 @@ THE SOFTWARE.
</s:group>
</s:section>

<s:section title="${%modifiers}" description="${%modifiers.description}">
<s:group>
<s:preview>
<button class="jenkins-button jenkins-!-destructive-color">Destructive</button>
</s:preview>
<s:code file="destructive.jelly" />
</s:group>
<p class="jdl-section__description">
${%destructive.description}
</p>
</s:section>

<s:section title="${%tertiary}" description="${%tertiary.description}">
<s:group>
<s:preview>
Expand All @@ -73,6 +61,30 @@ THE SOFTWARE.
</s:group>
</s:section>

<s:section title="${%modifiers}" description="${%modifiers.description}">
<s:group>
<s:preview>
<button class="jenkins-button jenkins-button--primary jenkins-!-build-color">
<l:icon src="symbol-play" />
Build
</button>
</s:preview>
<s:code file="build.jelly" />
</s:group>
<s:group>
<s:preview>
<button class="jenkins-button jenkins-!-destructive-color">
<l:icon src="symbol-trash" />
Delete
</button>
</s:preview>
<s:code file="destructive.jelly" />
</s:group>
<p class="jdl-section__description">
${%destructive.description}
</p>
</s:section>

<s:section title="${%copy}" description="${%copy.description}">
<s:group>
<s:preview>
Expand Down
4 changes: 4 additions & 0 deletions src/main/webapp/Buttons/build.jelly
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<button class="jenkins-button jenkins-button--primary jenkins-!-build-color">
<l:icon src="symbol-play" />
Build
</button>
5 changes: 4 additions & 1 deletion src/main/webapp/Buttons/destructive.jelly
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
<button class="jenkins-button jenkins-!-destructive-color">Destructive</button>
<button class="jenkins-button jenkins-!-destructive-color">
<l:icon src="symbol-trash" />
Delete
</button>

0 comments on commit 5a69266

Please sign in to comment.