Skip to content

Commit 5a69266

Browse files
authored
Add 'Build' primary button example (#370)
1 parent 28150ef commit 5a69266

File tree

3 files changed

+32
-13
lines changed

3 files changed

+32
-13
lines changed

src/main/resources/io/jenkins/plugins/designlibrary/Buttons/index.jelly

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -43,18 +43,6 @@ THE SOFTWARE.
4343
</s:group>
4444
</s:section>
4545

46-
<s:section title="${%modifiers}" description="${%modifiers.description}">
47-
<s:group>
48-
<s:preview>
49-
<button class="jenkins-button jenkins-!-destructive-color">Destructive</button>
50-
</s:preview>
51-
<s:code file="destructive.jelly" />
52-
</s:group>
53-
<p class="jdl-section__description">
54-
${%destructive.description}
55-
</p>
56-
</s:section>
57-
5846
<s:section title="${%tertiary}" description="${%tertiary.description}">
5947
<s:group>
6048
<s:preview>
@@ -73,6 +61,30 @@ THE SOFTWARE.
7361
</s:group>
7462
</s:section>
7563

64+
<s:section title="${%modifiers}" description="${%modifiers.description}">
65+
<s:group>
66+
<s:preview>
67+
<button class="jenkins-button jenkins-button--primary jenkins-!-build-color">
68+
<l:icon src="symbol-play" />
69+
Build
70+
</button>
71+
</s:preview>
72+
<s:code file="build.jelly" />
73+
</s:group>
74+
<s:group>
75+
<s:preview>
76+
<button class="jenkins-button jenkins-!-destructive-color">
77+
<l:icon src="symbol-trash" />
78+
Delete
79+
</button>
80+
</s:preview>
81+
<s:code file="destructive.jelly" />
82+
</s:group>
83+
<p class="jdl-section__description">
84+
${%destructive.description}
85+
</p>
86+
</s:section>
87+
7688
<s:section title="${%copy}" description="${%copy.description}">
7789
<s:group>
7890
<s:preview>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<button class="jenkins-button jenkins-button--primary jenkins-!-build-color">
2+
<l:icon src="symbol-play" />
3+
Build
4+
</button>
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
<button class="jenkins-button jenkins-!-destructive-color">Destructive</button>
1+
<button class="jenkins-button jenkins-!-destructive-color">
2+
<l:icon src="symbol-trash" />
3+
Delete
4+
</button>

0 commit comments

Comments
 (0)