]> source.dussan.org Git - gitea.git/commit
Fix incorrect "tabindex" attributes (#26733)
authorwxiaoguang <wxiaoguang@gmail.com>
Sat, 26 Aug 2023 02:44:00 +0000 (10:44 +0800)
committerGitHub <noreply@github.com>
Sat, 26 Aug 2023 02:44:00 +0000 (10:44 +0800)
commit4fdb09de588fb1ff32184411df80d5d59333b94c
tree5fb304d5be73ce7a4e6e0f29b95a7b91b13730d1
parent576644d81555cfcd7c865d444285cad64cc0b9ec
Fix incorrect "tabindex" attributes (#26733)

Fix #26731

Almost all "tabindex" in code are incorrect.

1. All "input/button" by default are focusable, so no need to use "tabindex=0"
2. All "div/span" by default are not focusable, so no need to use "tabindex=-1"
3. All "dropdown" are focusable by framework, so no need to use "tabindex"
4. Some tabindex values are incorrect (eg: `new_form.tmpl`), so remove them

Co-authored-by: Giteabot <teabot@gitea.io>
templates/org/create.tmpl
templates/org/settings/options.tmpl
templates/projects/view.tmpl
templates/repo/create.tmpl
templates/repo/editor/commit_form.tmpl
templates/repo/issue/new_form.tmpl
templates/repo/issue/view_content/sidebar.tmpl
templates/repo/settings/options.tmpl
templates/repo/settings/webhook/settings.tmpl
templates/user/dashboard/navbar.tmpl
web_src/js/components/DiffCommitSelector.vue