summaryrefslogtreecommitdiffstats
path: root/templates/repo
diff options
context:
space:
mode:
authorYarden Shoham <hrsi88@gmail.com>2022-11-15 04:10:50 +0200
committerGitHub <noreply@github.com>2022-11-15 10:10:50 +0800
commitde6dfb714153c17a06406c866805a17a476c63bd (patch)
tree0a452da1f7cd279015515288e38fa7be5ca938a9 /templates/repo
parent55115dbb73b3e445fd8661b063d215bb9d0d688e (diff)
downloadgitea-de6dfb714153c17a06406c866805a17a476c63bd.tar.gz
gitea-de6dfb714153c17a06406c866805a17a476c63bd.zip
Remove `href="javascript:;"` in "save topics (Done)" button (#21813)
To use an anchor tag as a button and have it be accessible I added `role="button" tabindex="0"`, [reference](https://stackoverflow.com/a/10510353/7414734). * Closes #19912
Diffstat (limited to 'templates/repo')
-rw-r--r--templates/repo/home.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl
index 6b4a0008d6..a798d3cc9e 100644
--- a/templates/repo/home.tmpl
+++ b/templates/repo/home.tmpl
@@ -47,7 +47,7 @@
</div>
</div>
<div class="two wide column">
- <a class="ui button primary" href="javascript:;" id="save_topic"
+ <a class="ui button primary" role="button" tabindex="0" id="save_topic"
data-link="{{.RepoLink}}/topics">{{.locale.Tr "repo.topic.done"}}</a>
</div>
</div>