Skip to content

Commit 1318783

Browse files
committed
Update action badge template to match shields layout
1 parent 2089401 commit 1318783

File tree

1 file changed

+18
-16
lines changed

1 file changed

+18
-16
lines changed
Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,27 @@
1-
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="{{.Badge.Width}}" height="18"
1+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="{{.Badge.Width}}" height="20"
22
role="img" aria-label="{{.Badge.Label.Text}}: {{.Badge.Message.Text}}">
33
<title>{{.Badge.Label.Text}}: {{.Badge.Message.Text}}</title>
44
<linearGradient id="s" x2="0" y2="100%">
5-
<stop offset="0" stop-color="#fff" stop-opacity=".7" />
6-
<stop offset=".1" stop-color="#aaa" stop-opacity=".1" />
7-
<stop offset=".9" stop-color="#000" stop-opacity=".3" />
8-
<stop offset="1" stop-color="#000" stop-opacity=".5" />
5+
<stop offset="0" stop-color="#bbb" stop-opacity=".1" />
6+
<stop offset="1" stop-opacity=".1" />
97
</linearGradient>
108
<clipPath id="r">
11-
<rect width="{{.Badge.Width}}" height="18" rx="4" fill="#fff" />
9+
<rect width="{{.Badge.Width}}" height="20" rx="3" fill="#fff" />
1210
</clipPath>
1311
<g clip-path="url(#r)">
14-
<rect width="{{.Badge.Label.Width}}" height="18" fill="#555" />
15-
<rect x="{{.Badge.Label.Width}}" width="{{.Badge.Message.Width}}" height="18" fill="{{.Badge.Color}}" />
16-
<rect width="{{.Badge.Width}}" height="18" fill="url(#s)" />
12+
<rect width="{{.Badge.Label.Width}}" height="20" fill="#555" />
13+
<rect x="{{.Badge.Label.Width}}" width="{{.Badge.Message.Width}}" height="20" fill="{{.Badge.Color}}" />
14+
<rect width="{{.Badge.Width}}" height="20" fill="url(#s)" />
15+
</g>
16+
<g fill="#fff" text-anchor="middle" font-family="Geneva,DejaVu Sans,sans-serif"
17+
text-rendering="geometricPrecision" font-size="{{.Badge.FontSize}}">
18+
<text aria-hidden="true" x="{{.Badge.Label.X}}" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)"
19+
textLength="{{.Badge.Label.TextLength}}">{{.Badge.Label.Text}}</text>
20+
<text x="{{.Badge.Label.X}}" y="140"
21+
transform="scale(.1)" fill="#fff" textLength="{{.Badge.Label.TextLength}}">{{.Badge.Label.Text}}</text>
22+
<text aria-hidden="true" x="{{.Badge.Message.X}}" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)"
23+
textLength="{{.Badge.Message.TextLength}}">{{.Badge.Message.Text}}</text>
24+
<text x="{{.Badge.Message.X}}" y="140" transform="scale(.1)" fill="#fff"
25+
textLength="{{.Badge.Message.TextLength}}">{{.Badge.Message.Text}}</text>
1726
</g>
18-
<g fill="#fff" text-anchor="middle" font-family="Geneva,DejaVu Sans,sans-serif" text-rendering="geometricPrecision"
19-
font-size="{{.Badge.FontSize}}"><text aria-hidden="true" x="{{.Badge.Label.X}}" y="140" fill="#010101" fill-opacity=".3"
20-
transform="scale(.1)" textLength="{{.Badge.Label.TextLength}}">{{.Badge.Label.Text}}</text><text x="{{.Badge.Label.X}}" y="130"
21-
transform="scale(.1)" fill="#fff" textLength="{{.Badge.Label.TextLength}}">{{.Badge.Label.Text}}</text><text aria-hidden="true"
22-
x="{{.Badge.Message.X}}" y="140" fill="#010101" fill-opacity=".3" transform="scale(.1)"
23-
textLength="{{.Badge.Message.TextLength}}">{{.Badge.Message.Text}}</text><text x="{{.Badge.Message.X}}" y="130" transform="scale(.1)"
24-
fill="#fff" textLength="{{.Badge.Message.TextLength}}">{{.Badge.Message.Text}}</text></g>
2527
</svg>

0 commit comments

Comments
 (0)