Skip to content

Commit 01f0822

Browse files
authored
Remove 'primary' class from tab counter labels (#22687)
Using the primary color for each label counter makes the use of color redundant, as well as suggesting this is a call to action. Use the base grey color instead. ![grey_lables](https://user-images.githubusercontent.com/451841/215778889-0d5dddad-353f-4703-a48f-1540080dee26.jpg)
1 parent ce4fd95 commit 01f0822

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

templates/repo/header.tmpl

+5-5
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@
163163
<a class="{{if .PageIsIssueList}}active {{end}}item" href="{{.RepoLink}}/issues">
164164
{{svg "octicon-issue-opened"}} {{.locale.Tr "repo.issues"}}
165165
{{if .Repository.NumOpenIssues}}
166-
<span class="ui primary small label">{{CountFmt .Repository.NumOpenIssues}}</span>
166+
<span class="ui small label">{{CountFmt .Repository.NumOpenIssues}}</span>
167167
{{end}}
168168
</a>
169169
{{end}}
@@ -178,7 +178,7 @@
178178
<a class="{{if .PageIsPullList}}active {{end}}item" href="{{.RepoLink}}/pulls">
179179
{{svg "octicon-git-pull-request"}} {{.locale.Tr "repo.pulls"}}
180180
{{if .Repository.NumOpenPulls}}
181-
<span class="ui primary small label">{{CountFmt .Repository.NumOpenPulls}}</span>
181+
<span class="ui small label">{{CountFmt .Repository.NumOpenPulls}}</span>
182182
{{end}}
183183
</a>
184184
{{end}}
@@ -187,7 +187,7 @@
187187
<a class="{{if .PageIsActions}}active {{end}}item" href="{{.RepoLink}}/actions">
188188
{{svg "octicon-play"}} {{.locale.Tr "actions.actions"}}
189189
{{if .Repository.NumOpenActionRuns}}
190-
<span class="ui primary small label">{{CountFmt .Repository.NumOpenActionRuns}}</span>
190+
<span class="ui small label">{{CountFmt .Repository.NumOpenActionRuns}}</span>
191191
{{end}}
192192
</a>
193193
{{end}}
@@ -202,7 +202,7 @@
202202
<a href="{{.RepoLink}}/projects" class="{{if .IsProjectsPage}}active {{end}}item">
203203
{{svg "octicon-project"}} {{.locale.Tr "repo.project_board"}}
204204
{{if .Repository.NumOpenProjects}}
205-
<span class="ui primary small label">{{CountFmt .Repository.NumOpenProjects}}</span>
205+
<span class="ui small label">{{CountFmt .Repository.NumOpenProjects}}</span>
206206
{{end}}
207207
</a>
208208
{{end}}
@@ -211,7 +211,7 @@
211211
<a class="{{if .PageIsReleaseList}}active {{end}}item" href="{{.RepoLink}}/releases">
212212
{{svg "octicon-tag"}} {{.locale.Tr "repo.releases"}}
213213
{{if .NumReleases}}
214-
<span class="ui primary small label">{{CountFmt .NumReleases}}</span>
214+
<span class="ui small label">{{CountFmt .NumReleases}}</span>
215215
{{end}}
216216
</a>
217217
{{end}}

0 commit comments

Comments
 (0)