From 4fdb09de588fb1ff32184411df80d5d59333b94c Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Sat, 26 Aug 2023 10:44:00 +0800 Subject: [PATCH] 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 --- templates/org/create.tmpl | 6 +-- templates/org/settings/options.tmpl | 6 +-- templates/projects/view.tmpl | 4 +- templates/repo/create.tmpl | 18 ++++---- templates/repo/editor/commit_form.tmpl | 2 +- templates/repo/issue/new_form.tmpl | 4 +- .../repo/issue/view_content/sidebar.tmpl | 2 +- templates/repo/settings/options.tmpl | 10 ++-- templates/repo/settings/webhook/settings.tmpl | 46 +++++++++---------- templates/user/dashboard/navbar.tmpl | 4 +- web_src/js/components/DiffCommitSelector.vue | 7 ++- 11 files changed, 54 insertions(+), 55 deletions(-) diff --git a/templates/org/create.tmpl b/templates/org/create.tmpl index 7e988ba0c7..966150aa93 100644 --- a/templates/org/create.tmpl +++ b/templates/org/create.tmpl @@ -19,15 +19,15 @@
- +
- +
- +
diff --git a/templates/org/settings/options.tmpl b/templates/org/settings/options.tmpl index 03827e4c3f..ecc269481d 100644 --- a/templates/org/settings/options.tmpl +++ b/templates/org/settings/options.tmpl @@ -40,19 +40,19 @@
- +
- +
- +
diff --git a/templates/projects/view.tmpl b/templates/projects/view.tmpl index 700b40c39b..d6b7dbc776 100644 --- a/templates/projects/view.tmpl +++ b/templates/projects/view.tmpl @@ -76,10 +76,10 @@ {{if and $canWriteProject (ne .ID 0)}}