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
This commit is contained in:
Yarden Shoham 2022-11-15 04:10:50 +02:00 committed by GitHub
parent 55115dbb73
commit de6dfb7141
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -47,7 +47,7 @@
</div> </div>
</div> </div>
<div class="two wide column"> <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> data-link="{{.RepoLink}}/topics">{{.locale.Tr "repo.topic.done"}}</a>
</div> </div>
</div> </div>